Re: [PATCH v2 1/1] branch: introduce --show-current display option
- From
Daniels Umanovskis <daniels@umanovskis.se>
- Date
- Oct 11, 2018, 20:46 UTC
- Message-ID
- <3b6f9f63-8512-4fb3-7506-5b149370724f@umanovskis.se>
- In-Reply-To
- <20181011203518.GA2385@rigel>
On 10/11/18 10:35 PM, Rafael Ascensão wrote:
> The output of the proposed command is also a bit inconsistent with the > usual output given by git branch, specifically the space alignment on > the left, color and * marker.
The proposed command therefore takes a new switch. It's definitely not perfect, but doesn't give the existing --list new and different behavior.
> At this stage it's closer to what I would expect from > $git rev-parse --abbrev-ref HEAD;
The proposal is largely to have similar output to that command, yes. I expect that "show current branch" is something that's available in the branch command, even completely disregarding questions of whether it's API stable, etc.