]> git.ipfire.org Git - thirdparty/git.git/commitdiff
test-lib-functions.sh: fix usage for test_commit()
authorDenton Liu <liu.denton@gmail.com>
Thu, 14 Jan 2021 23:02:40 +0000 (15:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Jan 2021 02:21:03 +0000 (18:21 -0800)
The usage comment for test_commit() shows that the --author option
should be given as `--author=<author>`. However, this is incorrect as it
only works when given as `--author <author>`. Correct this erroneous
text.

Also, for the sake of correctness, fix the description as well since we
invoke `git commit` with `--author <author>`, not `--author=<author>`.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Acked-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh

index b0a5d74dc7af01142351a6cb639807c4e28bba7a..cea73cb8f04f99a4156a02f38cb7ce65b57d97fd 100644 (file)
@@ -188,8 +188,8 @@ debug () {
 #      "<file>"
 #   --signoff
 #      Invoke "git commit" with --signoff
-#   --author=<author>
-#      Invoke "git commit" with --author=<author>
+#   --author <author>
+#      Invoke "git commit" with --author <author>
 #
 # This will commit a file with the given contents and the given commit
 # message, and tag the resulting commit with the given tag name.