Staging
v0.5.1
swh:1:snp:c5feb7ee9221a3820c8879e85e8a18470c0b3afa
Raw File
Tip revision: 089f20dce19711d34f5383ee289a9b1fbd3f3307 authored by Junio C Hamano on 21 September 2005, 07:58:32 UTC
Clarify dual license status of subprocess.py file.
Tip revision: 089f20d
git-add.sh
#!/bin/sh

show_only=
verbose=
while : ; do
  case "$1" in
    -n)
	show_only=true
	verbose=true
	;;
    -v)
	verbose=true
	;;
    *)
	break
	;;
  esac
  shift
done

GIT_DIR=$(git-rev-parse --git-dir) || exit
global_exclude=
if [ -f "$GIT_DIR/info/exclude" ]; then
   global_exclude="--exclude-from=$GIT_DIR/info/exclude"
fi
for i in $(git-ls-files --others \
	$global_exclude --exclude-per-directory=.gitignore \
	"$@")
do
   [ "$verbose" ] && echo "  $i"
   [ "$show_only" ] || git-update-index --add -- "$i" || exit
done
back to top