t3404 (rebase -i): introduce helper to check position of HEAD
authorJonathan Nieder <jrnieder@gmail.com>
Sun, 31 Oct 2010 07:40:30 +0000 (02:40 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Nov 2010 23:06:41 +0000 (15:06 -0800)
commit5c947e2c386aea5c94546c7a40a0d4d7f7b3934a
tree33b89af06b44fb038db2ce8b1ecc32b942172093
parent99b028e5589702320630c094d510d885ac8c9e50
t3404 (rebase -i): introduce helper to check position of HEAD

The same code to check the position of HEAD is used by several
tests in this script.  Factor it out as a function and simplify it.

Noticed using an &&-chaining tester, because the current code
does not propagate the precise exit status from errors.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3404-rebase-interactive.sh