summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3bb7256)
raw | patch | inline | side by side (parent: 3bb7256)
author | Michael Haggerty <mhagger@alum.mit.edu> | |
Fri, 22 Jan 2010 09:22:29 +0000 (10:22 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 22 Jan 2010 21:18:14 +0000 (13:18 -0800) |
Reported by: Eric Blake <ebb9@byu.net>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh | patch | blob | history |
index e551906ecd2a72fa56fa6ef5dba8f12708acb337..c2f6089de8dd74f9740d0ca4c5225248ec1bc1e7 100755 (executable)
parent_sha1=$(git rev-parse --verify $sha1^) ||
die "Could not get the parent of $sha1"
current_sha1=$(git rev-parse --verify HEAD)
- if test -z "$no_ff" -a "$current_sha1" = "$parent_sha1"
+ if test -z "$no_ff" && test "$current_sha1" = "$parent_sha1"
then
output git reset --hard $sha1
output warn Fast-forward to $(git rev-parse --short $sha1)