[PATCH v2 8/9] perf/run: show name of rev being built
- From
Christian Couder <chriscool@tuxfamily.org>
- Date
- Sep 23, 2017, 19:55 UTC
- Message-ID
- <0102015eb04f8a04-b3e697a7-eb71-4453-a5ae-692b523c6e29-000000@eu-west-1.amazonses.com>
- In-Reply-To
- <0102015eb04f8927-439213ae-a464-4638-affa-f0d6484086c0-000000@eu-west-1.amazonses.com>
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> --- t/perf/run | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/t/perf/run b/t/perf/run index cb8687bfcf98d..43e4de49ef2be 100755 --- a/t/perf/run +++ b/t/perf/run @@ -37,6 +37,7 @@ unpack_git_rev () { build_git_rev () { rev=$1 + name="$2" for config in config.mak config.mak.autogen config.status do if test -e "../../$config" @@ -44,7 +45,7 @@ build_git_rev () { cp "../../$config" "build/$rev/" fi done - echo "=== Building $rev ===" + echo "=== Building $rev ($name) ===" ( cd build/$rev && if test -n "$GIT_PERF_MAKE_COMMAND" @@ -71,7 +72,7 @@ run_dirs_helper () { if [ ! -d build/$rev ]; then unpack_git_rev $rev fi - build_git_rev $rev + build_git_rev $rev "$mydir" mydir=build/$rev fi if test "$mydir" = .; then -- https://github.com/git/git/pull/408