t3507: introduce pristine-detach helper
authorJonathan Nieder <redacted>
Sun, 20 Feb 2011 04:12:26 +0000 (23:12 -0500)
committerJunio C Hamano <redacted>
Tue, 22 Feb 2011 06:57:38 +0000 (22:57 -0800)
commit2161da103950704a92993702696c9b573dcbccae
tree8cc3a5666653fe33fe15033598facc24b1099af1
parent7ed863a85a6ce2c4ac4476848310b8f917ab41f9
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 <redacted>
Signed-off-by: Jonathan Nieder <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t3507-cherry-pick-conflict.sh
git clone https://git.99rst.org/PROJECT