Skip to content

Commit 76b8b8d

Browse files
avargitster
authored andcommitted
test-lib functions: document arguments to test_commit
The --notick argument was added in [1] and was followed by --signoff in [2], but neither of these commits added any documentation for these options. When -C was added in [3] a comment was added to document it, but not the other options. Let's document all of these options. 1. 44b85e8 (t7003: add test to filter a branch with a commit at epoch, 2012-07-12), 2. 5ed75e2 (cherry-pick: don't forget -s on failure, 2012-09-14). 3. 6f94351 (test-lib-functions.sh: teach test_commit -C <dir>, 2016-12-08) Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f21426e commit 76b8b8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/test-lib-functions.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ debug () {
181181
# Usage: test_commit [options] <message> [<file> [<contents> [<tag>]]]
182182
# -C <dir>:
183183
# Run all git commands in directory <dir>
184+
# --notick
185+
# Do not call test_tick before making a commit
186+
# --signoff
187+
# Invoke "git commit" with --signoff
184188
#
185189
# This will commit a file with the given contents and the given commit
186190
# message, and tag the resulting commit with the given tag name.

0 commit comments

Comments
 (0)