@matheusbsbs / matheus-bagliano / commits / 918db541e0
Fork 0

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>

Chris Shoemaker committed Oct 29, 2005 at 17:46 UTC 918db541e0e833b695ee45ee6cf563d018096860
2 files changed +15 -1
Documentation/git-add.txt
+8 -1
@@ -7,7 +7,7 @@ git-add - Add files to the cache.
7
8 SYNOPSIS
9 --------
10 -'git-add' <file>...
10 +'git-add' [-n] [-v] <file>...
11
12 DESCRIPTION
13 -----------
@@ -19,6 +19,13 @@ OPTIONS
19 <file>...::
20 Files to add to the cache.
21
22 +-n::
23 + Don't actually add the file(s), just show if they exist.
24 +
25 +-v::
26 + Be verbose.
27 +
28 +
29 Author
30 ------
31 Written by Linus Torvalds <torvalds@osdl.org>
git-add.sh
+7
@@ -1,5 +1,9 @@
1 #!/bin/sh
2
3 +usage() {
4 + die "usage: git add [-n] [-v] <file>..."
5 +}
6 +
7 show_only=
8 verbose=
9 while : ; do
@@ -10,6 +14,9 @@ while : ; do
14 -v)
15 verbose=--verbose
16 ;;
17 + -*)
18 + usage
19 + ;;
20 *)
21 break
22 ;;