Re: [PATCH] use strbuf_add_unique_abbrev() for adding short hashes
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 7, 2016, 08:53 UTC
- Message-ID
- <alpine.DEB.2.20.1608071051540.5786@virtualbox>
- In-Reply-To
- <57A6050D.50200@web.de>
Hi René,
On Sat, 6 Aug 2016, René Scharfe wrote:
> Call strbuf_add_unique_abbrev() to add abbreviated hashes to strbufs > instead of taking detours through find_unique_abbrev() and its static > buffer. This is shorter and a bit more efficient.
And less error-prone.
It is also a thing I need to change in my upcoming rebase--helper patches: I had not known about this function.
Thank you, Dscho