]> git.ipfire.org Git - thirdparty/git.git/commit - refs/refs-internal.h
add_update(): initialize the whole ref_update
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 25 Apr 2016 09:39:54 +0000 (11:39 +0200)
committerMichael Haggerty <mhagger@alum.mit.edu>
Mon, 13 Jun 2016 09:23:49 +0000 (11:23 +0200)
commit71564516deccafba0a58129bd7d3851e28fdb4bb
treed940e50a24cef10ef33df011309e2aa6e60842a9
parent3a8af7be8f977cbf393dc77884a9ee6dfd611d95
add_update(): initialize the whole ref_update

Change add_update() to initialize all of the fields in the new
ref_update object. Rename the function to ref_transaction_add_update(),
and increase its visibility to all of the refs-related code.

All of this makes the function more useful for other future callers.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
refs.c
refs/refs-internal.h