]> git.ipfire.org Git - thirdparty/git.git/commit - wt-status.c
status: show the branch name if possible in in-progress info
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 3 Feb 2013 05:53:27 +0000 (12:53 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Feb 2013 16:21:02 +0000 (08:21 -0800)
commit0722c805d616eb644a868a995b891470f9e5e30d
treeecb970d3b6c033b2334945c540a6de26e732ac61
parentbcd45b4085f9269a536c8fb1963ac8380bfac0e8
status: show the branch name if possible in in-progress info

The typical use-case is starting a rebase, do something else, come
back the day after, run "git status" or make a new commit and wonder
what in the world's going on. Which branch is being rebased is
probably the most useful tidbit to help, but the target may help
too.

Ideally, I would have loved to see "rebasing master on
origin/master", but the target ref name is not stored during rebase,
so this patch writes "rebasing master on a78c8c98b" as a
half-measure to remind future users of that potential improvement.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7512-status-help.sh
wt-status.c
wt-status.h