summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14470c0)
raw | patch | inline | side by side (parent: 14470c0)
author | Chris Shoemaker <c.shoemaker@cox.net> | |
Sat, 29 Oct 2005 21:46:41 +0000 (17:46 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 31 Oct 2005 01:28:01 +0000 (17:28 -0800) |
Signed-off-by: Chris Shoemaker <c.shoemaker@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-add.txt | patch | blob | history | |
git-add.sh | patch | blob | history |
index 4a03b4cfc6a2e497ceb5d61284928904af2877e1..32300297d6b04f71679b6052945a4c77a7fc640b 100644 (file)
SYNOPSIS
--------
-'git-add' <file>...
+'git-add' [-n] [-v] <file>...
DESCRIPTION
-----------
<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 4bf41281d5554f9b1da103b0360eebc411a435eb..b5fe46aa20865d6785390fd22406d32b00a77845 100755 (executable)
--- a/git-add.sh
+++ b/git-add.sh
#!/bin/sh
+usage() {
+ die "usage: git add [-n] [-v] <file>..."
+}
+
show_only=
verbose=
while : ; do
-v)
verbose=--verbose
;;
+ -*)
+ usage
+ ;;
*)
break
;;