diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-02-11 10:43:27 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-12 23:07:59 +0100 |
commit | 66335298a47032267edd6d6e7a71cc337e46e995 (patch) | |
tree | 547baec4b4e0f79368fac37c21ed84e0effef503 /git-rebase--am.sh | |
parent | am: add --show-current-patch (diff) | |
download | git-66335298a47032267edd6d6e7a71cc337e46e995.tar.xz git-66335298a47032267edd6d6e7a71cc337e46e995.zip |
rebase: add --show-current-patch
It is useful to see the full patch while resolving conflicts in a
rebase. The only way to do it now is
less .git/rebase-*/patch
which could turn out to be a lot longer to type if you are in a
linked worktree, or not at top-dir. On top of that, an ordinary user
should not need to peek into .git directory. The new option is
provided to examine the patch.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-rebase--am.sh')
-rw-r--r-- | git-rebase--am.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-rebase--am.sh b/git-rebase--am.sh index 14c50782e0..c931891cbc 100644 --- a/git-rebase--am.sh +++ b/git-rebase--am.sh @@ -27,6 +27,9 @@ skip) move_to_original_branch return ;; +show-current-patch) + exec git am --show-current-patch + ;; esac if test -z "$rebase_root" |