Fix and improve status on-branch information
commit3615bdee4c3d1a0c719fc6b24f25f5745a6f2d92
authorJonas Fonseca <jonas.fonseca@gmail.com>
Sun, 2 Nov 2014 03:19:23 +0000 (1 23:19 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Sun, 2 Nov 2014 04:13:42 +0000 (2 00:13 -0400)
tree5ec46629e08025cddae7c5d0819ca34eb6b3145c
parent4d5feac37acea5e991d2fc9467a0aa722aa64d2a
Fix and improve status on-branch information

Add a test for the different on-branch "modes" based on whether
git-rebase, git-am or git-merge is in progress or whether a detached
head has been checked out.

This also changes status view refreshing to only reload the current
branch information and not all refs as suggested in #341. Note that it
actually reloads all repo information to get both the symbolic ref
pointed to by HEAD as well as the HEAD id.
NEWS.adoc
include/tig/repo.h
src/repo.c
src/status.c
test/status/on-branch-test [new file with mode: 0755]