From: Chris Shoemaker <c.shoemaker@cox.net>
To: git@vger.kernel.org
Cc: Chris Shoemaker <c.shoemaker@cox.net>
Subject: [PATCH] Add to usage and docs for git-add.sh
Date: Sat, 29 Oct 2005 17:46:41 -0400 [thread overview]
Message-ID: <11306224011312-git-send-email-c.shoemaker@cox.net> (raw)
In-Reply-To: <11306224012707-git-send-email-c.shoemaker@cox.net>
Signed-off-by: Chris Shoemaker <c.shoemaker@cox.net>
---
Documentation/git-add.txt | 9 ++++++++-
git-add.sh | 7 +++++++
2 files changed, 15 insertions(+), 1 deletions(-)
2bc166e3e8241432b88ff793ec69a979a7056b3e
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -7,7 +7,7 @@ git-add - Add files to the cache.
SYNOPSIS
--------
-'git-add' <file>...
+'git-add' [-n] [-v] <file>...
DESCRIPTION
-----------
@@ -19,6 +19,13 @@ OPTIONS
<file>...::
Files to add to the cache.
+-n::
+ Don't actually add the file(s), just show if they exist.
+
+-v::
+ Be verbose.
+
+
Author
------
Written by Linus Torvalds <torvalds@osdl.org>
diff --git a/git-add.sh b/git-add.sh
--- a/git-add.sh
+++ b/git-add.sh
@@ -1,5 +1,9 @@
#!/bin/sh
+usage() {
+ die "usage: git add [-n] [-v] <file>..."
+}
+
show_only=
verbose=
while : ; do
@@ -10,6 +14,9 @@ while : ; do
-v)
verbose=--verbose
;;
+ -*)
+ usage
+ ;;
*)
break
;;
prev parent reply other threads:[~2005-10-29 21:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-29 21:46 [PATCH] Add usage statement to git-checkout.sh Chris Shoemaker
2005-10-29 21:46 ` [PATCH] Add to documentation of git-update-index arguments and usage Chris Shoemaker
2005-10-29 21:46 ` Chris Shoemaker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11306224011312-git-send-email-c.shoemaker@cox.net \
--to=c.shoemaker@cox.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).