Re: [PATCH v4] branch: introduce --show-current display option
- From
Daniels Umanovskis <daniels@umanovskis.se>
- Date
- Oct 17, 2018, 17:36 UTC
- Message-ID
- <fab5a98e-dcf2-5a95-3191-35a2d10227cb@umanovskis.se>
- In-Reply-To
- <20181017093655.GA11811@rigel>
On 10/17/18 11:39 AM, Rafael Ascensão wrote:
Show 6 quoted lines
> On Fri, Oct 12, 2018 at 03:33:21PM +0200, Daniels Umanovskis wrote: >> Intended both for scripting and interactive/informative use. >> Unlike git branch --list, no filtering is needed to just get the >> branch name. > > Are we going forward with advertising this as a scriptable alternative?
That's probably up to the maintainers, but I would not explicitly point it out as a script command, so my patch doesn't mention scripting use in the documentation for it. In reality it's useful for "soft scripting" like setting the shell $PS1, which doesn't require API stability guarantees the way proper scripts do.