summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dc6282d)
raw | patch | inline | side by side (parent: dc6282d)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 14 Jul 2008 21:05:35 +0000 (14:05 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 14 Jul 2008 21:05:35 +0000 (14:05 -0700) |
When detaching the HEAD to the base commit, the "git checkout" command
could fail if, for example, upstream contains a file that would overrwrite
a local, untracked file. Unconditionally discarding the standard error
stream was done to squelch the progress and notices back when checkout
did not have -q option, but there is no reason to keep doing it anymore.
Noticed by Robert Shearman.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
could fail if, for example, upstream contains a file that would overrwrite
a local, untracked file. Unconditionally discarding the standard error
stream was done to squelch the progress and notices back when checkout
did not have -q option, but there is no reason to keep doing it anymore.
Noticed by Robert Shearman.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh | patch | blob | history |
diff --git a/git-rebase.sh b/git-rebase.sh
index e2d85eeeab79e60ef46a65cfee1fb4682dd4ba68..7825f88952490705fa5272724c92cccff057cc12 100755 (executable)
--- a/git-rebase.sh
+++ b/git-rebase.sh
# Detach HEAD and reset the tree
echo "First, rewinding head to replay your work on top of it..."
-git checkout "$onto^0" >/dev/null 2>&1 ||
- die "could not detach HEAD"
-# git reset --hard "$onto^0"
+git checkout -q "$onto^0" || die "could not detach HEAD"
# If the $onto is a proper descendant of the tip of the branch, then
# we just fast forwarded.