From: Chris Shoemaker Date: Sat, 29 Oct 2005 21:46:41 +0000 (-0400) Subject: Add to usage and docs for git-add.sh X-Git-Tag: v0.99.9a^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=918db541e0e833b695ee45ee6cf563d018096860;p=git.git Add to usage and docs for git-add.sh Signed-off-by: Chris Shoemaker Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index 4a03b4cfc..32300297d 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' ... +'git-add' [-n] [-v] ... DESCRIPTION ----------- @@ -19,6 +19,13 @@ OPTIONS ...:: 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 diff --git a/git-add.sh b/git-add.sh index 4bf41281d..b5fe46aa2 100755 --- a/git-add.sh +++ b/git-add.sh @@ -1,5 +1,9 @@ #!/bin/sh +usage() { + die "usage: git add [-n] [-v] ..." +} + show_only= verbose= while : ; do @@ -10,6 +14,9 @@ while : ; do -v) verbose=--verbose ;; + -*) + usage + ;; *) break ;;