diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2011-02-19 23:12:26 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-02-21 22:57:38 -0800 |
commit | 2161da103950704a92993702696c9b573dcbccae (patch) | |
tree | 8cc3a5666653fe33fe15033598facc24b1099af1 /t/annotate-tests.sh | |
parent | Git 1.7.4 (diff) | |
download | tgif-2161da103950704a92993702696c9b573dcbccae.tar.xz |
t3507: introduce pristine-detach helper
All the tests in t3507 (cherry-pick with conflicts) begin with the
same checkout + read-tree + clean incantation to ensure a predictable
starting point. Factor out a function for that so the interesting
part of the tests is easier to read.
The "update-index --refresh" and "diff-index --exit-code HEAD" are not
necessary as the point of this testsuite is not about testing
"read-tree --reset".
Improved-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/annotate-tests.sh')
0 files changed, 0 insertions, 0 deletions