diff options
author | Chris Shoemaker <c.shoemaker@cox.net> | 2005-10-29 17:46:41 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-30 17:28:01 -0800 |
commit | 918db541e0e833b695ee45ee6cf563d018096860 (patch) | |
tree | 7392afaa6a348bef15f5b04544765b79b9685397 | |
parent | 14470c0de3d5a4388960f59ea96038206bacd888 (diff) | |
download | git-918db541e0e833b695ee45ee6cf563d018096860.tar.gz |
Add to usage and docs for git-add.sh
Signed-off-by: Chris Shoemaker <c.shoemaker@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r-- | Documentation/git-add.txt | 9 | ||||
-rwxr-xr-x | git-add.sh | 7 |
2 files changed, 15 insertions, 1 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index 4a03b4cfc6..32300297d6 100644 --- 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 index 4bf41281d5..b5fe46aa20 100755 --- 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 ;; |