From 51dbc6f4024e3a841baabc28a9aea7e0890858d2 Mon Sep 17 00:00:00 2001 From: Stephen Haberman Date: Sat, 23 Aug 2008 22:58:30 -0500 Subject: [PATCH] Try and flush out all the commands devs would need. I'm not sure I like this, but it is worth a try. --- scripts/gc-add | 10 +++++++--- scripts/gc-commit | 4 ++++ scripts/gc-diff | 4 ++++ scripts/gc-pull | 2 +- scripts/gc-rm | 4 ++++ scripts/gc-status | 4 ++++ 6 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 scripts/gc-commit create mode 100644 scripts/gc-diff create mode 100644 scripts/gc-rm create mode 100644 scripts/gc-status 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 $* + -- 2.39.5