Thanks, Shikha. I'm not sure I clearly expressed my point. Git doesn't record anything about file renames, moves or copies. The data you are looking to register with the GitLab API isn't possible to store in Git. As explained here: https://stackoverflow.com/a/1043566/5419599 Git does not do rename tracking nor copy tracking, which means it doesn't record renames or copies. What it does instead is rename and copy detection.
-- https://stackoverflow.com/q/16937359/5419599 might be useful for you also.
Best,
—Mike Weilgart Vertical Sysadmin, Inc. On Dec 14, 2017, at 8:21 PM, Shikha Aggarwal <shikha.aggarwal0...@gmail.com> wrote: Thanks Mike for your response. Perhaps I didnot explain the question very well. 1. Yes I would like to do a copy not a move. 2. I would like to use the gitlab API to do that, The only API I found so far was https://docs.gitlab.com/ee/api/repository_files.html - the create file, It's not really a copy fof existng file from repository hence I was wondering how that can be done using GitLab API's Thanks again, Shikha On Thursday, 14 December 2017 11:58:25 UTC+1, Shikha Aggarwal wrote:
You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/5e20e18f-aeb2-4158-b997-6fdb6eda81bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/39A6AD85-3A28-4756-BECE-A3E230194730%40verticalsysadmin.com. For more options, visit https://groups.google.com/d/optout. |
- Copying a file using gitlab ApI with commit history Shikha Aggarwal
- Re: Copying a file using gitlab ApI with commit histo... Mike Weilgart
- Re: Copying a file using gitlab ApI with commit histo... Shikha Aggarwal
- Re: Copying a file using gitlab ApI with commit h... Mike Weilgart
- Re: Copying a file using gitlab ApI with comm... Shikha Aggarwal