Re: [git-users] Conflict occurs with different file names.

2017-11-09 Thread Igor Djordjevic
Hi Philip,

On Thursday, November 9, 2017 at 9:29:52 PM UTC+1, Philip Oakley wrote:
>
> I think what you are seeing is that you you have confused different parts 
> of the display messages.
>  
> I believe Git says:
>  
> You asked Git to cherry pick a commit that has the subject line 
> "dir02/abc.apk"
>

At first I thought the same, but I managed to actually recreate the issue, 
and the warning line really mentions (different) file name at the end. In 
my test example, it was: 

warning: Cannot merge binary files: a.txt.gz (HEAD:a.txt.gz vs. c8fe548... 
testing:b.txt.gz)


... where "testing" is a commit message, and "b.txt.gz" the actual filename 
in that commit (opposing "a.txt.gz" inside HEAD).

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.


Re: [git-users] Conflict occurs with different file names.

2017-11-09 Thread Philip Oakley
From: eunida...@gmail.com 
  Could a conflict occur even though the file names are different?



  The Conflict occurs when cherry-picking a particular commit.



  Status like below:


  Unmerged paths:
(use "git add ..." to mark resolution)


  both modified:   dir01/test.apk


  There is a dir01/test.apk file locally, but there is no file on the remote.



  When a conflict occurs, a warning is shown below.

  warning: Cannot merge binary files: dir01/test.apk (HEAD:dir01/test.apk vs. 
382c6ba... This is commit subject:dir02/abc.apk)





  dir01/test.apk and dir02/abc.apk have different names. Why is there a 
conflict?

--
I think what you are seeing is that you you have confused different parts of 
the display messages.

I believe Git says:

You asked Git to cherry pick a commit that has the subject line "dir02/abc.apk"

When Git trys to merge in that commit (between HEAD and 382c6ba), Git finds 
that the file "dir01/test.apk" is binary and that Git cannot merge that file.

 So..
do check the current HEAD structure to see if it has dir01/test.apk, and then 
check  382c6ba. 
Check for a similar file name within the two worktrees just in case move 
detection has decided that the file may have been moved and is thus trying to 
merge to a file elsewhere, and even then it doesn't do binary merges out of the 
tin (do you have a mergetool set for .apk files? maybe it is utf-16, and thus 
'binary'..?)
--
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.