Code

Add --src/dst-prefix to git-formt-patch in git-rebase.sh
authorOded Shimon <ods15@ods15.dyndns.org>
Thu, 9 Sep 2010 18:49:51 +0000 (21:49 +0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Sep 2010 00:09:44 +0000 (17:09 -0700)
For the case of "diff.noprefix" in git-config, git-format-patch should
still output diff with standard prefixes for git-am

Signed-off-by: Oded Shimon <ods15@ods15.dyndns.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh

index 1b9ea48cd713d7f6b25e529d09743447635f6432..acca22dc783d4a24f86789a65e341b4bd65fe36a 100755 (executable)
@@ -544,6 +544,7 @@ fi
 if test -z "$do_merge"
 then
        git format-patch -k --stdout --full-index --ignore-if-in-upstream \
+               --src-prefix=a/ --dst-prefix=b/ \
                --no-renames $root_flag "$revisions" |
        git am $git_am_opt --rebasing --resolvemsg="$RESOLVEMSG" &&
        move_to_original_branch