on master help sign in
Fix to pick the correct HEAD commit
5a01635Harendra Kumar
bench.sh+7−1
@@ -3,6 +3,12 @@
3print_help () {
3print_help () {
4 echo "Usage: $0 [--quick] [--append] [--no-graphs] [--no-measure] \
4 echo "Usage: $0 [--quick] [--append] [--no-graphs] [--no-measure] \
5[--no-compare] [--base commit] [--candidate commit] -- <gauge options>"
5[--no-compare] [--base commit] [--candidate commit] -- <gauge options>"
6+ echo
7+ echo "Default generates comparative chart of HEAD^ vs HEAD commit, "
8+ echo "in the 'charts' directory. Use --base and --candidate to select "
9+ echo "the commits to compare. Use --no-compare to just benchmark the "
10+ echo "current workspace only."
11+ echo
6 echo "Any arguments after a '--' are passed directly to guage"
12 echo "Any arguments after a '--' are passed directly to guage"
7 echo "You can omit '--' if the gauge args used do not start with a '-'."
13 echo "You can omit '--' if the gauge args used do not start with a '-'."
8 exit
14 exit
@@ -128,7 +134,7 @@ if test "$MEASURE" != "0"
128 else
134 else
129 if test -z "$CANDIDATE"
135 if test -z "$CANDIDATE"
130 then
136 then
131− CANDIDATE=HEAD
137+ CANDIDATE=$(git rev-parse HEAD)
132 fi
138 fi
133 if test -z "$BASE"
139 if test -z "$BASE"
134 then
140 then