mirror of
https://github.com/git/git
synced 2024-10-06 00:29:28 +00:00
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>
This commit is contained in:
parent
14470c0de3
commit
918db541e0
|
@ -7,7 +7,7 @@ git-add - Add files to the cache.
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
'git-add' <file>...
|
'git-add' [-n] [-v] <file>...
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -19,6 +19,13 @@ OPTIONS
|
||||||
<file>...::
|
<file>...::
|
||||||
Files to add to the cache.
|
Files to add to the cache.
|
||||||
|
|
||||||
|
-n::
|
||||||
|
Don't actually add the file(s), just show if they exist.
|
||||||
|
|
||||||
|
-v::
|
||||||
|
Be verbose.
|
||||||
|
|
||||||
|
|
||||||
Author
|
Author
|
||||||
------
|
------
|
||||||
Written by Linus Torvalds <torvalds@osdl.org>
|
Written by Linus Torvalds <torvalds@osdl.org>
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
die "usage: git add [-n] [-v] <file>..."
|
||||||
|
}
|
||||||
|
|
||||||
show_only=
|
show_only=
|
||||||
verbose=
|
verbose=
|
||||||
while : ; do
|
while : ; do
|
||||||
|
@ -10,6 +14,9 @@ while : ; do
|
||||||
-v)
|
-v)
|
||||||
verbose=--verbose
|
verbose=--verbose
|
||||||
;;
|
;;
|
||||||
|
-*)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue