git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [TRIVIAL] Documentation: add: <filepattern>... is optional
@ 2009-08-11 13:03 Paul Bolle
  2009-08-11 14:50 ` [PATCH] " Nicolas Sebrecht
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Bolle @ 2009-08-11 13:03 UTC (permalink / raw)
  To: Junio C Hamano, git

<filepattern>... is optional (e.g. when the --all or --update
options are used) so use square brackets in the synopsis.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
 Documentation/git-add.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index ab1943c..e67b7e8 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -10,7 +10,7 @@ SYNOPSIS
 [verse]
 'git add' [-n] [-v] [--force | -f] [--interactive | -i] [--patch | -p]
 	  [--edit | -e] [--all | [--update | -u]] [--intent-to-add | -N]
-	  [--refresh] [--ignore-errors] [--] <filepattern>...
+	  [--refresh] [--ignore-errors] [--] [<filepattern>...]
 
 DESCRIPTION
 -----------
-- 
1.6.4

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

* [PATCH] Re: [TRIVIAL] Documentation: add: <filepattern>... is optional
  2009-08-11 13:03 [PATCH] [TRIVIAL] Documentation: add: <filepattern>... is optional Paul Bolle
@ 2009-08-11 14:50 ` Nicolas Sebrecht
  2009-08-11 15:06   ` Paul Bolle
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Sebrecht @ 2009-08-11 14:50 UTC (permalink / raw)
  To: Paul Bolle; +Cc: Junio C Hamano, git

The 11/08/09, Paul Bolle wrote:

> <filepattern>... is optional (e.g. when the --all or --update
> options are used) so use square brackets in the synopsis.

So <filepattern> is needed in all other cases. The '-u' description
already has

	" If no paths are specified, all tracked files in the current
  directory and its subdirectories are updated. "

and '-a' refers to '-u'

  "(same as --update)"

.

-- 
Nicolas Sebrecht

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

* Re: [PATCH] Re: [TRIVIAL] Documentation: add: <filepattern>... is optional
  2009-08-11 14:50 ` [PATCH] " Nicolas Sebrecht
@ 2009-08-11 15:06   ` Paul Bolle
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Bolle @ 2009-08-11 15:06 UTC (permalink / raw)
  To: Nicolas Sebrecht; +Cc: Junio C Hamano, git

On Tue, 2009-08-11 at 16:50 +0200, Nicolas Sebrecht wrote:
> The 11/08/09, Paul Bolle wrote:
> 
> > <filepattern>... is optional (e.g. when the --all or --update
> > options are used) so use square brackets in the synopsis.
> 
> So <filepattern> is needed in all other cases.

Since it is an optional argument in those cases I'd say it is better to
indicate that it is optional in the synopsis too.


Paul Bolle

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

end of thread, other threads:[~2009-08-11 15:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11 13:03 [PATCH] [TRIVIAL] Documentation: add: <filepattern>... is optional Paul Bolle
2009-08-11 14:50 ` [PATCH] " Nicolas Sebrecht
2009-08-11 15:06   ` Paul Bolle

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 NNTP newsgroup(s).