Merge with master to pick up safety patches.

This commit is contained in:
Junio C Hamano 2005-08-18 22:10:50 -07:00
commit 14022f5b1c
4 changed files with 13 additions and 8 deletions

View File

@ -328,12 +328,7 @@ GIT_DIR.
Terminology Terminology
----------- -----------
Each line contains terms which you may see used interchangeably Please see link:glossary.html[glossary] document.
object database, .git directory
directory cache, index
id, sha1, sha1-id, sha1 hash
type, tag
Environment Variables Environment Variables

View File

@ -41,7 +41,7 @@
#endif #endif
#ifndef __attribute__ #ifndef __attribute__
#define __attribute(x) #define __attribute__(x)
#endif #endif
/* /*

View File

@ -27,7 +27,9 @@ esac
upstream=`git-rev-parse --verify "$1"` && upstream=`git-rev-parse --verify "$1"` &&
ours=`git-rev-parse --verify "$ours_symbolic"` || exit ours=`git-rev-parse --verify "$ours_symbolic"` || exit
test "$(git-diff-cache --cached "$ours")" = "" || different1=$(git-diff-cache --name-only --cached "$ours") &&
different2=$(git-diff-cache --name-only "$ours") &&
test "$different1$different2" = "" ||
die "Your working tree does not match $ours_symbolic." die "Your working tree does not match $ours_symbolic."
git-read-tree -m -u $ours $upstream && git-read-tree -m -u $ours $upstream &&

View File

@ -18,6 +18,8 @@
## use a Signoff_file, because applypatch wants to append the sign-off ## use a Signoff_file, because applypatch wants to append the sign-off
## message to msg-clean every time it is run. ## message to msg-clean every time it is run.
. git-sh-setup-script || die "Not a git archive"
keep_subject= query_apply= continue= resume=t keep_subject= query_apply= continue= resume=t
while case "$#" in 0) break ;; esac while case "$#" in 0) break ;; esac
do do
@ -39,6 +41,12 @@ case "$continue" in
shift shift
esac esac
files=$(git-diff-cache --cached --name-only HEAD) || exit
if [ "$files" ]; then
echo "Dirty index: cannot apply patches (dirty: $files)" >&2
exit 1
fi
case "$query_apply" in case "$query_apply" in
t) touch .dotest/.query_apply t) touch .dotest/.query_apply
esac esac