commit | 5c947e2c386aea5c94546c7a40a0d4d7f7b3934a | [log] [tgz] |
---|---|---|
author | Jonathan Nieder <jrnieder@gmail.com> | Sun Oct 31 02:40:30 2010 -0500 |
committer | Junio C Hamano <gitster@pobox.com> | Tue Nov 09 15:06:41 2010 -0800 |
tree | 33b89af06b44fb038db2ce8b1ecc32b942172093 | |
parent | 99b028e5589702320630c094d510d885ac8c9e50 [diff] |
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>