@matheusbsbs / matheus-bagliano / commits / c699f9b924
Fork 0

Remove old "git-add.sh" remnants

Repeat after me: "It's now a built-in" Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Linus Torvalds committed May 17, 2006 at 21:21 UTC c699f9b924d763b762df932769d91e3d053634a8
2 files changed +2 -58
Makefile
+2 -2
@@ -113,7 +113,7 @@ SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__
113 ### --- END CONFIGURATION SECTION ---
114
115 SCRIPT_SH = \
116 - git-add.sh git-bisect.sh git-branch.sh git-checkout.sh \
116 + git-bisect.sh git-branch.sh git-checkout.sh \
117 git-cherry.sh git-clean.sh git-clone.sh git-commit.sh \
118 git-fetch.sh \
119 git-format-patch.sh git-ls-remote.sh \
@@ -170,7 +170,7 @@ PROGRAMS = \
170
171 BUILT_INS = git-log$X git-whatchanged$X git-show$X \
172 git-count-objects$X git-diff$X git-push$X \
173 - git-grep$X
173 + git-grep$X git-add$X
174
175 # what 'all' will build and 'install' will install, in gitexecdir
176 ALL_PROGRAMS = $(PROGRAMS) $(SIMPLE_PROGRAMS) $(SCRIPTS)
git-add.sh deleted
-56
@@ -1,56 +0,0 @@
1 -#!/bin/sh
2 -
3 -USAGE='[-n] [-v] <file>...'
4 -SUBDIRECTORY_OK='Yes'
5 -. git-sh-setup
6 -
7 -show_only=
8 -verbose=
9 -while : ; do
10 - case "$1" in
11 - -n)
12 - show_only=true
13 - ;;
14 - -v)
15 - verbose=--verbose
16 - ;;
17 - --)
18 - shift
19 - break
20 - ;;
21 - -*)
22 - usage
23 - ;;
24 - *)
25 - break
26 - ;;
27 - esac
28 - shift
29 -done
30 -
31 -# Check misspelled pathspec
32 -case "$#" in
33 -0) ;;
34 -*)
35 - git-ls-files --error-unmatch --others --cached -- "$@" >/dev/null || {
36 - echo >&2 "Maybe you misspelled it?"
37 - exit 1
38 - }
39 - ;;
40 -esac
41 -
42 -if test -f "$GIT_DIR/info/exclude"
43 -then
44 - git-ls-files -z \
45 - --exclude-from="$GIT_DIR/info/exclude" \
46 - --others --exclude-per-directory=.gitignore -- "$@"
47 -else
48 - git-ls-files -z \
49 - --others --exclude-per-directory=.gitignore -- "$@"
50 -fi |
51 -case "$show_only" in
52 -true)
53 - xargs -0 echo ;;
54 -*)
55 - git-update-index --add $verbose -z --stdin ;;
56 -esac