From: Stephen Haberman Date: Sun, 24 Aug 2008 03:58:30 +0000 (-0500) Subject: Try and flush out all the commands devs would need. X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=51dbc6f4024e3a841baabc28a9aea7e0890858d2;p=git-central.git Try and flush out all the commands devs would need. I'm not sure I like this, but it is worth a try. --- diff --git a/scripts/gc-add b/scripts/gc-add index 9260eac..71a13b7 100644 --- a/scripts/gc-add +++ b/scripts/gc-add @@ -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 index 0000000..c283737 --- /dev/null +++ b/scripts/gc-commit @@ -0,0 +1,4 @@ +#!/bin/sh + +git commit $* + diff --git a/scripts/gc-diff b/scripts/gc-diff new file mode 100644 index 0000000..b70d435 --- /dev/null +++ b/scripts/gc-diff @@ -0,0 +1,4 @@ +#!/bin/sh + +git diff $* + diff --git a/scripts/gc-pull b/scripts/gc-pull index 325eb2d..4b04d3a 100644 --- a/scripts/gc-pull +++ b/scripts/gc-pull @@ -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 index 0000000..1599f46 --- /dev/null +++ b/scripts/gc-rm @@ -0,0 +1,4 @@ +$!/bin/sh + +git rm $* + diff --git a/scripts/gc-status b/scripts/gc-status new file mode 100644 index 0000000..d3cba61 --- /dev/null +++ b/scripts/gc-status @@ -0,0 +1,4 @@ +$!/bin/sh + +git status $* +