]> git.proxmox.com Git - libgit2.git/commit
Add internal ref set_name fn instead of realloc
authorRussell Belfer <rb@github.com>
Wed, 21 Aug 2013 21:10:27 +0000 (14:10 -0700)
committerRussell Belfer <rb@github.com>
Wed, 21 Aug 2013 21:10:27 +0000 (14:10 -0700)
commit24c71f14b4dcb696d9d87330322c12fd2c185317
tree779a0dcb86c051b5722aa60c784020e4b171fc80
parenta4977169e1e1920ed33f10a77e5dd8706f103f4f
Add internal ref set_name fn instead of realloc

The refdb_fs implementation calls realloc directly on a reference
object when it wants to rename it.  It is not a public object, so
this doesn't mess with the immutability of references, but it does
assume certain constraints on the reference representation.  This
commit wraps that assumption in an isolated API to isolate it.
src/refs.c
src/refs.h