Thread (1 message) 1 message, 1 author, 2016-06-15

Re: How to do a reverse rebase?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:29

"Shawn O. Pearce" [off-list ref] writes:
quoted
Is there an easier way?
I don't think so.  To do the merge of those files we need a working
directory to operate in; that working directory is the one you have.
Actually, if the rebase is really tine compared to the
differences between the branches, we _could_ do that without
using the real work tree.

Prepare a "for rebase" index, with an empty temporary directory
as the work tree, and use the merge machinery to do the
necessary per-path and contents merge all inside that temporary
directory.  As the merge machiery is designed to be usable
inside an empty directory and treat "missing" work tree files as
if they are unchanged since index, the checkout in this
temporary directory would be kept to the minimum.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help