Re: [RFC PATCH v3 4/4] builtin/branch: give more useful error messages when renaming
- From
Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
- Date
- Nov 13, 2017, 02:31 UTC
- Message-ID
- <29bd81e4-e8df-8fb8-9436-d70902106f49@gmail.com>
- In-Reply-To
- <20171112182322.GA17612@alpha.vpn.ikke.info>
On Sunday 12 November 2017 11:53 PM, Kevin Daudt wrote:
Show 7 quoted lines
> On Thu, Nov 02, 2017 at 12:24:07PM +0530, Kaartic Sivaraam wrote: >> From: Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> >> >> When trying to rename an inexistent branch to with a name of a branch > > This sentence does not read well. Probably s/with a/the/ helps. >
Thanks. Seems I missed it somehow. Will fix it.
Show 11 quoted lines
>> that already exists the rename failed specifying the new branch name >> exists rather than specifying that the branch trying to be renamed >> doesn't exist. >> >> [..] >> >> Note: Thanks to the strbuf API that made it possible to easily construct >> the composite error message strings! > > I'm not sure this note adds a lot, since the strbuf API is not that new. >
That was a little attribution I wanted make to the strbuf API as this was the first time I leveraged it to this extent and I was surprised by the way it made string manipulation easier in C. Just documented my excitation. In case it seems to be noise (?) which should removed, let me know.
--- Kaartic