perf/run: show name of rev being built

It is nice for the user to not just show the sha1 of the current revision being built but also the actual name of this revision. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Christian Couder committed Sep 23, 2017 at 19:55 UTC ffdd01076eb2a0dbc0f0543803faca9734353533
1 file changed +3 -2
t/perf/run
+3 -2
@@ -37,6 +37,7 @@ unpack_git_rev () {
37
38 build_git_rev () {
39 rev=$1
40 + name="$2"
41 for config in config.mak config.mak.autogen config.status
42 do
43 if test -e "../../$config"
@@ -44,7 +45,7 @@ build_git_rev () {
45 cp "../../$config" "build/$rev/"
46 fi
47 done
47 - echo "=== Building $rev ==="
48 + echo "=== Building $rev ($name) ==="
49 (
50 cd build/$rev &&
51 if test -n "$GIT_PERF_MAKE_COMMAND"
@@ -71,7 +72,7 @@ run_dirs_helper () {
72 if [ ! -d build/$rev ]; then
73 unpack_git_rev $rev
74 fi
74 - build_git_rev $rev
75 + build_git_rev $rev "$mydir"
76 mydir=build/$rev
77 fi
78 if test "$mydir" = .; then