Try and flush out all the commands devs would need.
[git-central.git] / scripts / gc-add
1 #!/bin/sh
2
3 if [[ $# -eq 0 ]] ; then
4         git ls-files -d | xargs -r git rm
5         git ls-files -m | xargs -r git add
6         git ls-files -o --exclude-standard | xargs -r git add
7 else
8         git add $*
9 fi
10