Skip to content

Commit 91c4339

Browse files
chriscoolgitster
authored andcommitted
perf/run: add GIT_PERF_DIRS_OR_REVS
This environment variable can be set to some revisions or directories whose Git versions should be tested, in addition to the revisions or directories passed as arguments to the 'run' script. This enables a "perf.dirsOrRevs" configuration variable to be used to set revisions or directories whose Git versions should be tested. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e6b7153 commit 91c4339

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/perf/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ get_var_from_env_or_config () {
113113
get_var_from_env_or_config "GIT_PERF_REPEAT_COUNT" "perf.repeatCount" 3
114114
export GIT_PERF_REPEAT_COUNT
115115

116+
get_var_from_env_or_config "GIT_PERF_DIRS_OR_REVS" "perf.dirsOrRevs"
117+
set -- $GIT_PERF_DIRS_OR_REVS "$@"
118+
116119
GIT_PERF_AGGREGATING_LATER=t
117120
export GIT_PERF_AGGREGATING_LATER
118121

0 commit comments

Comments
 (0)