Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2010-07-21 08:25:02 +0400
committerJunio C Hamano <gitster@pobox.com>2010-07-24 02:07:39 +0400
commit6bc83cdd0b9c7eab365e10d46d1e2acdb769728a (patch)
tree70bfd975c793bc97e08b4deac347538d8161ae05 /Documentation/howto/revert-branch-rebase.txt
parentf29b5e06b3bdbe3c66a01db8ee67e3c87ae55705 (diff)
t3508: add check_head_differs_from() helper function and use it
In a test like: test "$(git rev-parse --verify HEAD)" != "$(git rev-parse --verify fourth)" the --verify does not accomplish much, since the exit status of git rev-parse is not propagated to test. So it is more robust to define and use the helper functions check_head_differs_from() and check_head_equals() as done by this patch. Suggested-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/howto/revert-branch-rebase.txt')
0 files changed, 0 insertions, 0 deletions