Thread (59 messages) flat view 59 messages, 7 authors, 2018-03-10

Re: [RFC PATCH v3 4/4] builtin/branch: give more useful error messages when renaming

From: Kaartic Sivaraam <hidden>
Date: 2017-11-13 02:32:46

Possibly related (same subject, not in this thread)

On Sunday 12 November 2017 11:53 PM, Kevin Daudt wrote:
On Thu, Nov 02, 2017 at 12:24:07PM +0530, Kaartic Sivaraam wrote:
quoted
From: Kaartic Sivaraam <redacted>

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.
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help