]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs/refs-internal.h: new header file
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 10 Nov 2015 11:42:36 +0000 (12:42 +0100)
committerJeff King <peff@peff.net>
Fri, 20 Nov 2015 09:52:01 +0000 (04:52 -0500)
commit4cb77009e1fa692e56048754e2032ed044f28c26
treedf8192eb8b7141896bad922791efbecec5510622
parent03b32623d82d20835d8dda3f9ce9900f09485d11
refs/refs-internal.h: new header file

There are a number of constants, structs, and static functions defined
in refs.c and treated as private to the references module. But we want
to support multiple reference backends within the reference module,
and those backends will need access to some heretofore private
declarations.

We don't want those declarations to be visible to non-refs code, so we
don't want to move them to refs.h. Instead, add a new header file,
refs/refs-internal.h, that is intended to be included only from within
the refs module. Make some functions non-static and move some
declarations (and their corresponding docstrings) from refs.c to this
file.

In a moment we will add more content to the "refs" subdirectory.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jeff King <peff@peff.net>
refs.c
refs/refs-internal.h [new file with mode: 0644]