Skip to content

Commit ffdd010

Browse files
chriscoolgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent afda85c commit ffdd010

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

t/perf/run

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ unpack_git_rev () {
3737

3838
build_git_rev () {
3939
rev=$1
40+
name="$2"
4041
for config in config.mak config.mak.autogen config.status
4142
do
4243
if test -e "../../$config"
4344
then
4445
cp "../../$config" "build/$rev/"
4546
fi
4647
done
47-
echo "=== Building $rev ==="
48+
echo "=== Building $rev ($name) ==="
4849
(
4950
cd build/$rev &&
5051
if test -n "$GIT_PERF_MAKE_COMMAND"
@@ -71,7 +72,7 @@ run_dirs_helper () {
7172
if [ ! -d build/$rev ]; then
7273
unpack_git_rev $rev
7374
fi
74-
build_git_rev $rev
75+
build_git_rev $rev "$mydir"
7576
mydir=build/$rev
7677
fi
7778
if test "$mydir" = .; then

0 commit comments

Comments
 (0)