]> git.droids-corp.org - git-central.git/commitdiff
Try and flush out all the commands devs would need.
authorStephen Haberman <stephen@exigencecorp.com>
Sun, 24 Aug 2008 03:58:30 +0000 (22:58 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Sun, 24 Aug 2008 03:58:30 +0000 (22:58 -0500)
I'm not sure I like this, but it is worth a try.

scripts/gc-add
scripts/gc-commit [new file with mode: 0644]
scripts/gc-diff [new file with mode: 0644]
scripts/gc-pull
scripts/gc-rm [new file with mode: 0644]
scripts/gc-status [new file with mode: 0644]

index 9260eac26385ffbf00e7d65014cb77477370c99e..71a13b7f2807b3e456ce6355dd0dfeba5331ff92 100644 (file)
@@ -1,6 +1,10 @@
 #!/bin/sh
 
-git ls-files -d | xargs -r git rm
-git ls-files -m | xargs -r git add
-git ls-files -o --exclude-standard | xargs -r git add
+if [[ $# -eq 0 ]] ; then
+       git ls-files -d | xargs -r git rm
+       git ls-files -m | xargs -r git add
+       git ls-files -o --exclude-standard | xargs -r git add
+else
+       git add $*
+fi
 
diff --git a/scripts/gc-commit b/scripts/gc-commit
new file mode 100644 (file)
index 0000000..c283737
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+git commit $*
+
diff --git a/scripts/gc-diff b/scripts/gc-diff
new file mode 100644 (file)
index 0000000..b70d435
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+git diff $*
+
index 325eb2dfbcce2525896115dd6d6d8d0c13aa64d9..4b04d3a1248319a99fb10c5eac957ebb9929ca58 100644 (file)
@@ -1,4 +1,4 @@
 #!/bin/sh
 
-git pull --rebase
+git pull --rebase $*
 
diff --git a/scripts/gc-rm b/scripts/gc-rm
new file mode 100644 (file)
index 0000000..1599f46
--- /dev/null
@@ -0,0 +1,4 @@
+$!/bin/sh
+
+git rm $*
+
diff --git a/scripts/gc-status b/scripts/gc-status
new file mode 100644 (file)
index 0000000..d3cba61
--- /dev/null
@@ -0,0 +1,4 @@
+$!/bin/sh
+
+git status $*
+