summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-01-12 20:17:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-12 22:04:41 (GMT)
commitf21426e189f3ace9dcf9d713b2c2f2721515b886 (patch)
treed41c8d47206662b07e9ae80bc5ea1b5dc27d0238 /t
parent56ac194e1d3b3f3b46c2d48f47bde69d35547a7c (diff)
downloadgit-f21426e189f3ace9dcf9d713b2c2f2721515b886.zip
git-f21426e189f3ace9dcf9d713b2c2f2721515b886.tar.gz
git-f21426e189f3ace9dcf9d713b2c2f2721515b886.tar.bz2
test-lib functions: expand "test_commit" comment template
Expand the comment template for "test_commit" to match that of "test_commit_bulk" added in b1c36cb849 (test-lib: introduce test_commit_bulk, 2019-07-02). It has several undocumented options, which won't all fit on one line. Follow-up commit(s) will document them. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rw-r--r--t/test-lib-functions.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 999982f..396e039 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -178,16 +178,14 @@ debug () {
GIT_DEBUGGER="${GIT_DEBUGGER}" "$@" <&6 >&5 2>&7
}
-# Call test_commit with the arguments
-# [-C <directory>] <message> [<file> [<contents> [<tag>]]]"
+# Usage: test_commit [options] <message> [<file> [<contents> [<tag>]]]
+# -C <dir>:
+# Run all git commands in directory <dir>
#
# This will commit a file with the given contents and the given commit
# message, and tag the resulting commit with the given tag name.
#
# <file>, <contents>, and <tag> all default to <message>.
-#
-# If the first argument is "-C", the second argument is used as a path for
-# the git invocations.
test_commit () {
notick= &&