Re: [FAQ?] Rationale for git's way to manage the index
- From
Petr Baudis <pasky@suse.cz>
- Date
- May 10, 2007, 22:51 UTC
- Message-ID
- <20070510225137.GE4489@pasky.or.cz>
- In-Reply-To
- <20070510220649.GL3141@spearce.org>
On Fri, May 11, 2007 at 12:06:49AM CEST, Shawn O. Pearce wrote:
Show 9 quoted lines
> Which is why I'm considering shelving support (of some kind) in > git-gui... but I'm probably not going to take away the current > index view, nor am I going to take away the current hunk selection. > > But I would like to make it easier for non-patching-editing gods > (Linus) to pull hunks in from a shelf, test them, and commit them. > > Said shelf probably would be another branch, much as Linus' nicely > documented workflow does...
FWIW, Cogito supports shelving of uncommitted changes when switching a branch (so that they are not retained through the switch but restored when you switch back to the original branch) by committing the local changes to refs/shelves/HEADNAME.
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ Ever try. Ever fail. No matter. // Try again. Fail again. Fail better. -- Samuel Beckett