[PATCH 5/6] Update git to v1.7.9.7
John Keeping
john at keeping.me.uk
Sat Mar 2 16:35:40 CET 2013
On Sat, Mar 02, 2013 at 10:21:09AM -0500, Jason A. Donenfeld wrote:
> On Sat, Mar 2, 2013 at 7:32 AM, John Keeping <john at keeping.me.uk> wrote:
> > resolve_ref() is renamed to resolve_ref_unsafe(). CGit's usage is safe.
>
> Is there a safe usage we ought to consider as an alternative? I
> haven't looked into the details here yet.
resolve_ref was renamed to resolve_ref_unsafe in Git commit 8cad474
(Rename resolve_ref() to resolve_ref_unsafe(), 2011-12-12) to indicate
that it returns a static buffer that will be overwritten by the next
call. CGit strdup's the returned value immediately so there's nothing
to worry about here.
John
More information about the CGit
mailing list