From: Junio C Hamano Date: Tue, 26 May 2015 20:49:23 +0000 (-0700) Subject: Merge branch 'jk/rebase-quiet-noop' into maint X-Git-Tag: v2.4.2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5d5343386414d6097cdba797c88e3bc043dc0074?ds=inline;hp=-c Merge branch 'jk/rebase-quiet-noop' into maint "git rebase --quiet" was not quite quiet when there is nothing to do. * jk/rebase-quiet-noop: rebase: silence "git checkout" for noop rebase --- 5d5343386414d6097cdba797c88e3bc043dc0074 diff --combined git-rebase.sh index 55da9db818,ba74d11941..90854e38cb --- a/git-rebase.sh +++ b/git-rebase.sh @@@ -59,7 -59,6 +59,7 @@@ If you prefer to skip this patch, run " To check out the original branch and stop rebasing, run "git rebase --abort".') " unset onto +unset restrict_revision cmd= strategy= strategy_opts= @@@ -467,8 -466,8 +467,8 @@@ the else if test -z "$onto" then - empty_tree=`git hash-object -t tree /dev/null` - onto=`git commit-tree $empty_tree /dev/null then @@@ -582,7 -581,7 +582,7 @@@ # Lazily switch to the target branch if needed... test -z "$switch_to" || GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION: checkout $switch_to" \ - git checkout "$switch_to" -- + git checkout -q "$switch_to" -- say "$(eval_gettext "Current branch \$branch_name is up to date.")" finish_rebase exit 0 @@@ -627,7 -626,7 +627,7 @@@ if test -n "$rebase_root then revisions="$onto..$orig_head" else - revisions="$upstream..$orig_head" + revisions="${restrict_revision-$upstream}..$orig_head" fi run_specific_rebase