From: Daniels Umanovskis Date: Thu, 11 Oct 2018 16:36:02 GMT Subject: Re: [PATCH v2 1/1] branch: introduce --show-current display option Message-ID: <1409ebd2-d72c-fbd6-bf5c-777342723ca2@umanovskis.se> In-Reply-To: <20181011154319.GA6386@rigel> On 10/11/18 5:43 PM, Rafael Ascensão wrote: > I agree it feels a bit out of place, and still think that > > $ git branch --list HEAD > > would be a good candidate to be taught how to print the current branch. I am not a fan because it would be yet another inconsistency in the Git command interface. An argument given after git branch --list means a pattern for the branches to list. Making HEAD print the current branch would be an exception to what an argument in that place means. Yes, HEAD itself is a very special string in git, but I'm not a fan of syntax where a specific argument value does something very different from any other value in that place.