[PATCH 1/2] gitcli: formatting fix
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 10, 2012, 19:53 UTC
- Message-ID
- <1347306840-14007-1-git-send-email-gitster@pobox.com>
- In-Reply-To
- <7vhar5oemu.fsf@alter.siamese.dyndns.org>
The paragraph to encourage use of "--" in scripts belongs to the bullet point that describes the behaviour for a command line without the explicit "--" disambiguation, not a supporting explanation for the entire bulletted list.
Signed-off-by: Junio C Hamano <gitster@pobox.com> --- Documentation/gitcli.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/gitcli.txt b/Documentation/gitcli.txt index ea17f7a..c4edf04 100644 --- a/Documentation/gitcli.txt +++ b/Documentation/gitcli.txt @@ -37,7 +37,7 @@ arguments. Here are the rules: file called HEAD in your work tree, `git diff HEAD` is ambiguous, and you have to say either `git diff HEAD --` or `git diff -- HEAD` to disambiguate. - ++ When writing a script that is expected to handle random user-input, it is a good practice to make it explicit which arguments are which by placing disambiguating `--` at appropriate places.
-- 1.7.12.322.g2c7d289