git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] Documentation: update-index: -z applies also to --index-info
@ 2010-10-07 13:23 Bert Wesarg
  2010-10-07 18:33 ` Štěpán Němec
  0 siblings, 1 reply; 13+ messages in thread
From: Bert Wesarg @ 2010-10-07 13:23 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Štěpán Němec, Bert Wesarg

Also mention, that --stdin and --index-info needs to be the last
option supplied and indicate this in the usage string.

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>

---

We may like the usage string like this:

[[-z] --stdin | --index-info]

to make it also clear, that -z applies only to --stdin or --index-only.
---
 Documentation/git-update-index.txt |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/Documentation/git-update-index.txt b/Documentation/git-update-index.txt
index 74d1d49..4441d7c 100644 Documentation/git-update-index.txt
--- a/Documentation/git-update-index.txt
+++ b/Documentation/git-update-index.txt
@@ -18,8 +18,9 @@ SYNOPSIS
 	     [--skip-worktree | --no-skip-worktree]
 	     [--ignore-submodules]
 	     [--really-refresh] [--unresolve] [--again | -g]
-	     [--info-only] [--index-info]
-	     [-z] [--stdin]
+	     [--info-only]
+	     [-z]
+	     [--stdin] [--index-info]
 	     [--verbose]
 	     [--] [<file>]*
 
@@ -72,7 +73,7 @@ OPTIONS
 	Directly insert the specified info into the index.
 
 --index-info::
-        Read index information from stdin.
+        Read index information from stdin (Must be last option).
 
 --chmod=(+|-)x::
         Set the execute permissions on the updated files.
@@ -138,14 +139,15 @@ you will need to handle the situation manually.
 --stdin::
 	Instead of taking list of paths from the command line,
 	read list of paths from the standard input.  Paths are
-	separated by LF (i.e. one path per line) by default.
+	separated by LF (i.e. one path per line) by default
+	(Must be last option).
 
 --verbose::
         Report what is being added and removed from index.
 
 -z::
-	Only meaningful with `--stdin`; paths are separated with
-	NUL character instead of LF.
+	Only meaningful with `--stdin` or `--index-info`; paths are
+	separated with NUL character instead of LF.
 
 \--::
 	Do not interpret any more arguments as options.
-- 
1.7.1.1067.g5aeb7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-10-08  6:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-07 13:23 [PATCH] Documentation: update-index: -z applies also to --index-info Bert Wesarg
2010-10-07 18:33 ` Štěpán Němec
2010-10-07 18:52   ` Bert Wesarg
2010-10-07 18:55     ` Bert Wesarg
2010-10-07 19:15       ` Jonathan Nieder
2010-10-07 19:27         ` Štěpán Němec
2010-10-07 18:59     ` Bert Wesarg
2010-10-07 19:36       ` Štěpán Němec
2010-10-07 19:39         ` Bert Wesarg
2010-10-07 19:39           ` Bert Wesarg
2010-10-08  2:49             ` Junio C Hamano
2010-10-08  6:47               ` Bert Wesarg
2010-10-08  6:50                 ` Bert Wesarg

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).