diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-03-15 13:17:42 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-16 01:25:24 -0700 |
commit | 0cb06644a569d92ea8b3b6e81bc8bd786d98920e (patch) | |
tree | ccbca86ce9cbc39d1bdf6a3d1ec5f8dda84f807b /t/t9119-git-svn-info.sh | |
parent | Update draft release notes for 1.5.5 (diff) | |
download | tgif-0cb06644a569d92ea8b3b6e81bc8bd786d98920e.tar.xz |
rebase [--onto O] A B: omit needless checkout
This teaches "git rebase [--onto O] A B" to omit an unnecessary checkout
of branch B before it goes on.
"git-rebase" originally was about rebasing the current branch to somewhere
else, and when the extra parameter to name which branch to rebase was
added, it defined the semantics to the safest but stupid "first switch to
the named branch and then operate exactly the same way as if we were
already on that branch".
But the first thing the real part of "rebase" does is to reset the work
tree and the index to the "onto" commit. Which means the "rebase that
branch" form switched the work tree to the tip of the branch only to
immediately switch again to another commit. This was wasteful.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9119-git-svn-info.sh')
0 files changed, 0 insertions, 0 deletions