summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2f15a8)
raw | patch | inline | side by side (parent: a2f15a8)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 15 Aug 2005 22:37:37 +0000 (15:37 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 15 Aug 2005 22:37:37 +0000 (15:37 -0700) |
Make sure that we say --verify when we want to get a single SHA1
name. Also when we say --verify, --revs-only is redundant.
Signed-off-by: Junio C Hamano <junkio@cox.net>
name. Also when we say --verify, --revs-only is redundant.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-rebase-script | patch | blob | history | |
git-reset-script | patch | blob | history | |
git-tag-script | patch | blob | history |
diff --git a/git-rebase-script b/git-rebase-script
index 7779813d11b92867219818de65a4cba50ca76758..026225ab2cea131fcea00e5a5112dcd350f36eab 100755 (executable)
--- a/git-rebase-script
+++ b/git-rebase-script
esac
git-read-tree -m -u $ours $upstream &&
-echo "$upstream" >"$GIT_DIR/HEAD" || exit
+git-rev-parse --verify "$upstream^0" >"$GIT_DIR/HEAD" || exit
tmp=.rebase-tmp$$
fail=$tmp-fail
diff --git a/git-reset-script b/git-reset-script
index 49994df7a2329a87a65588be94088198d208ba1a..7da8d86823b09a6fa9a5c5d28dcc849253843181 100755 (executable)
--- a/git-reset-script
+++ b/git-reset-script
#!/bin/sh
. git-sh-setup-script || die "Not a git archive"
-rev=$(git-rev-parse --revs-only --verify --default HEAD "$@") || exit
-rev=$(git-rev-parse --revs-only --verify $rev^0) || exit
+rev=$(git-rev-parse --verify --default HEAD "$@") || exit
+rev=$(git-rev-parse --verify $rev^0) || exit
git-read-tree --reset "$rev" && {
if orig=$(git-rev-parse --verify HEAD 2>/dev/null)
then
diff --git a/git-tag-script b/git-tag-script
index d3074a8b3d84d878f568f8b04867e923e1628fe5..39c3c53987bf647d2b15127c7fa8cedcc5befd35 100755 (executable)
--- a/git-tag-script
+++ b/git-tag-script
fi
shift
-object=$(git-rev-parse --verify --revs-only --default HEAD "$@") || exit 1
+object=$(git-rev-parse --verify --default HEAD "$@") || exit 1
type=$(git-cat-file -t $object) || exit 1
tagger=$(git-var GIT_COMMITTER_IDENT) || exit 1