Re: [PATCH] Avoid rename/add conflict when contents are identical

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 9, 2010 at 21:00, Schalk, Ken <ken.schalk@xxxxxxxxx> wrote:

> Here's a simple sequence that generates this kind of conflict:
>
>  git init
>  echo content > fileA
>  git add fileA
>  git commit -m Initial
>  git checkout -b abranch
>  mv fileA fileB
>  git add fileB
>  rm fileA
>  ln -s fileB fileA
>  git add fileA
>  git commit -m Linked
>  git checkout master
>  git mv fileA fileB
>  git add fileB
>  git commit -m Moved
>  git merge --no-commit abranch

I don't know merge well enough to review the code in this patch, but
the patch would be much better if you turned this sequence of commands
(slightly altered, see t/README) into a now-passing test as part of
the patch.

t/t3030-merge-recursive.sh would be the right place to add it.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]