Revision d35bbe0b2e3765639c23978783a5319dfad33992 authored by Sergey Vlasov on 23 September 2005, 12:28:18 UTC, committed by Junio C Hamano on 23 September 2005, 21:30:45 UTC
When freeing a tree entry, must free its name too. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent a95cb6f
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
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...