Re: [git-users] Re: Conflict occurs with different file names.
On Thursday, November 9, 2017 at 10:06:50 PM UTC+1, Igor Djordjevic wrote: ... Git has "rename detection", where if one file is missing on one side, but another file appeared one the other side - having different names but (even just almost) the same content, Git will see that as a rename, and act accordingly, possibly trying to merge two files, as you experienced. Wording might be a bit unfortunate here, as I initially wanted to write something else - could be this is more understandable: Git has "rename detection", where if one file is deleted, but another file appears - having different names but (even just almost) the same content, Git will see that as a rename, and act accordingly, possibly later trying to merge two files, as you experienced. -- Thanks for the clarifications. I see that in eunidaddy's email the word 'commit' had got into the warning message, which helped confuse me a bit. merging non-plain text is tricky, with binary probably being the worst, but XML (generated from another package) can also be fun when extraneous 'not-relevant-to-me' changes are buried in the structure! (other problem formats are available) Philip -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[git-users] Re: Conflict occurs with different file names.
On Thursday, November 9, 2017 at 10:06:50 PM UTC+1, Igor Djordjevic wrote: > > ... Git has "rename detection", where if one file is missing on one side, > but another file appeared one the other side - having different names but > (even just almost) the same content, Git will see that as a rename, and act > accordingly, possibly trying to merge two files, as you experienced. > Wording might be a bit unfortunate here, as I initially wanted to write something else - could be this is more understandable: Git has "rename detection", where if one file is deleted, but another file appears - having different names but (even just almost) the same content, Git will see that as a rename, and act accordingly, possibly later trying to merge two files, as you experienced. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[git-users] Re: Conflict occurs with different file names.
Hi, On Thursday, November 9, 2017 at 9:42:06 AM UTC+1, euni...@gmail.com wrote: > > Could a conflict occur even though the file names are different? > Yes. dir01/test.apk and dir02/abc.apk have different names. Why is there a > conflict? > What Philip already mentioned - Git has "rename detection", where if one file is missing on one side, but another file appeared one the other side - having different names but (even just almost) the same content, Git will see that as a rename, and act accordingly, possibly trying to merge two files, as you experienced. Git says - you modified file "dir01/test.apk", other side renamed file "dir01/test.apk" to "dir02/abc.apk" and modified it, too -- thus Git still seeing it as the same file and trying to merge, and failing as these are binary files. Other side might have actually deleted "dir01/test.apk" and created new "dir02/abc.apk" which just happened to be almost the same as previously deleted "dir01/test.apk", Git will still see that a simple rename of the old file (plus the modification). Note that if other side`s file, "dir02/abc.apk", wasn`t modified but _exactly the same_ as previous "dir01/test.apk" file (regarding file content), your "dir01/test.apk" file would have just been renamed to "dir02/abc.apk" as a direct consequence of the cherry-pick you attempted -- as even if not actually, contextually that`s exactly what happened on the other side :) Regards, Buga -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.