Re: Behavior of stash apply vs merge
- From
Robin Rosenberg <robin.rosenberg@dewire.com>
- Date
- Jan 27, 2013, 19:51 UTC
- Message-ID
- <35452020.1815583.1359316269106.JavaMail.root@dewire.com>
- In-Reply-To
- <7vfw1mwibu.fsf@alter.siamese.dyndns.org>
----- Ursprungligt meddelande -----
Show 11 quoted lines
> Robin Rosenberg <robin.rosenberg@dewire.com> 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