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 <[email protected]> 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

_______________________________________________
cgit mailing list
[email protected]
http://hjemli.net/mailman/listinfo/cgit

Reply via email to