]> git.ipfire.org Git - thirdparty/git.git/commit - git-svn.perl
git-svn: allow dcommit to retain local merge information
authorEric Wong <normalperson@yhbt.net>
Wed, 13 Jun 2007 09:23:28 +0000 (02:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Jun 2007 18:24:23 +0000 (11:24 -0700)
commit733a65aa5d33196fac708ebd12a98a1060cbf3c2
tree0b84b953aaca4550a55a595b2a59a1948cd7c589
parent38570a47fcd9d7631c03673249f587697fa85677
git-svn: allow dcommit to retain local merge information

dcommit will still rewrite the HEAD commit and the history of the first
parents of each HEAD~1, HEAD~2, HEAD~3 as it always has.

However, any merge parents (HEAD^2, HEAD^^2, HEAD~2^2) will now be
preserved when the new HEAD and HEAD~[0-9]+ commits are rewritten to SVN
with dcommit.  Commits written to SVN will still not have any merge
information besides anything in the commit message.

Thanks to Joakim Tjernlund, Junio C Hamano and Steven Grimm
for explanations, feedback, examples and test case.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl
t/t9114-git-svn-dcommit-merge.sh [new file with mode: 0755]