summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd4b0ae)
raw | patch | inline | side by side (parent: bd4b0ae)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 24 Apr 2007 05:10:47 +0000 (22:10 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 24 Apr 2007 05:11:20 +0000 (22:11 -0700) |
Instead of running rev-list and picking earlier lines using head/tail pipeline,
grab commit object name as we build commits. This also removes a non POSIX
use of tail with -linenum (more posixly-correct way to say it is "-n linenum")
Signed-off-by: Junio C Hamano <junkio@cox.net>
grab commit object name as we build commits. This also removes a non POSIX
use of tail with -linenum (more posixly-correct way to say it is "-n linenum")
Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t6030-bisect-porcelain.sh | patch | blob | history |
index 13e937923658868c16fee6aefc52c8f180cafdfb..30f6ade13f088df1ce6c7e3649c2afb343649d65 100755 (executable)
MSG="Create file <$_file> with <$_line> inside."
fi
- git-commit -m "$MSG" $_file
+ test_tick
+ git-commit --quiet -m "$MSG" $_file
}
HASH1=
+HASH2=
HASH3=
HASH4=
-test_expect_success \
- 'set up basic repo with 1 file (hello) and 4 commits' \
- 'add_line_into_file "1: Hello World" hello &&
+test_expect_success 'set up basic repo with 1 file (hello) and 4 commits' '
+ add_line_into_file "1: Hello World" hello &&
+ HASH1=$(git rev-parse --verify HEAD) &&
add_line_into_file "2: A new day for git" hello &&
+ HASH2=$(git rev-parse --verify HEAD) &&
add_line_into_file "3: Another new day for git" hello &&
+ HASH3=$(git rev-parse --verify HEAD) &&
add_line_into_file "4: Ciao for now" hello &&
- HASH1=$(git rev-list HEAD | tail -1) &&
- HASH3=$(git rev-list HEAD | head -2 | tail -1) &&
- HASH4=$(git rev-list HEAD | head -1)'
+ HASH4=$(git rev-parse --verify HEAD)
+'
test_expect_success 'bisect starts with only one bad' '
git bisect reset &&