Fix status view regression where tracked files was shown as added
commit1f6e98b0d5af038ccf4beef6e39252c8eb0f2afe
authorJonas Fonseca <jonas.fonseca@gmail.com>
Fri, 21 Nov 2014 00:55:30 +0000 (20 19:55 -0500)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Fri, 21 Nov 2014 00:55:30 +0000 (20 19:55 -0500)
treee52efb5f90054006fb1314d6e53de9fc0b3ac8e3
parent966ae6cce559237f8a92c304a826d5052ca105fc
Fix status view regression where tracked files was shown as added

The changes in 3615bdee4c3d1a0c719fc6b24f25f5745a6f2d92 introduced the
regression. Since it only occurs when `tig status` is run in a repo with
a detached head it was not caught by status/on-branch-test. To rectify
this on-branch-test now checks each individual test case as well as
running them all together.
src/repo.c
src/status.c
test/refs/branch-checkout-test
test/status/on-branch-test
test/tools/libtest.sh