From: Robin Rosenberg Date: Sun, 27 Jan 2013 19:51:09 GMT Subject: Re: Behavior of stash apply vs merge Message-ID: <35452020.1815583.1359316269106.JavaMail.root@dewire.com> In-Reply-To: <7vfw1mwibu.fsf@alter.siamese.dyndns.org> ----- Ursprungligt meddelande ----- > Robin Rosenberg writes: > > > Thanks. Feeling a bit studid now. > > > > I was actually thinking about using merge to implement stash apply > > in JGit. What we have is broken so I tried using merge to implement > > it and them compared to git merge --no-commit.. FAIL. > > Do you have "cherry-pick"? > > In short, "stash apply" is a "cherry-pick" in disguise. Yes, that's what I did. Thanks for confirming this. One for the working tree and if that succeeds I do another one to restore the index if requested. -- robin