Re: [PATCH v3 2/5] stash: convert apply to builtin
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 27, 2018, 15:07 UTC
- Message-ID
- <nycvar.QRO.7.76.6.1803271705210.77@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz>
- In-Reply-To
- <20180327054432.26419-3-joel@teichroeb.net>
Hi Joel,
On Mon, 26 Mar 2018, Joel Teichroeb wrote:
Show 14 quoted lines
> Add a bulitin helper for performing stash commands. Converting > all at once proved hard to review, so starting with just apply > let conversion get started without the other command being > finished. > > The helper is being implemented as a drop in replacement for > stash so that when it is complete it can simply be renamed and > the shell script deleted. > > Delete the contents of the apply_stash shell function and replace > it with a call to stash--helper apply until pop is also > converted. > > Signed-off-by: Joel Teichroeb <joel@teichroeb.net>
Very good!
In the interest of as incremental a change as possible, I would wager a bet that this is the best way we can go about it, later replacing the parts that still spawn Git processes (such as get_symbolic_name and have_stash) with direct calls into libgit.a, one by one.
Thank you! Dscho