| USAGE='[-f] [-n] [-v] [--] <file>...' |
| # This is typo-proofing. If some paths match and some do not, we want |
| git-ls-files --error-unmatch -- "$@" >/dev/null || { |
| echo >&2 "Maybe you misspelled it?" |
| if test -f "$GIT_DIR/info/exclude" |
| --exclude-from="$GIT_DIR/info/exclude" \ |
| --exclude-per-directory=.gitignore -- "$@" |
| --exclude-per-directory=.gitignore -- "$@" |
| case "$show_only,$remove_files" in |
| rm -- \"\$file\" && git-update-index --remove $verbose \"\$file\" |
| git-update-index --force-remove $verbose -z --stdin |