From: Junio C Hamano Date: Wed, 02 Jul 2008 21:04:19 GMT Subject: Re: [PATCH] Disconnect stash from its base commit Message-ID: <7vprpw80bw.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20080702195401.GA17214@toroid.org> Abhijit Menon-Sen writes: > At 2008-07-02 12:01:35 -0700, gitster@pobox.com wrote: >> >> But that imaginary "stash branch" command would always give you >> the exact state you were in and creates a clean fork to finish >> what you were doing, and continue. > > Nice idea. Something as simple as the appended diff? > > I reversed the stash/branch arguments so that one need specify only the > branch name. Playing with it a little, it feels very useful. I'd further suggest to delete the stash automatically when you create a new branch out of it.