diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2015-06-22 16:03:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-22 13:17:11 -0700 |
commit | 79e4d8a9b839ed18816e78ed52f0ff5a5f6e9a63 (patch) | |
tree | 0483f9e8ea6adde686035ebd80ebd5c800931694 /refs.c | |
parent | a087b432a79f85b34e8582219a0bdec73c5821f5 (diff) | |
download | git-79e4d8a9b839ed18816e78ed52f0ff5a5f6e9a63.tar.gz git-79e4d8a9b839ed18816e78ed52f0ff5a5f6e9a63.tar.xz |
repack_without_refs(): make function private
It is no longer called from outside of the refs module. Also move its
docstring and change it to imperative voice.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2736,7 +2736,14 @@ int pack_refs(unsigned int flags) return 0; } -int repack_without_refs(struct string_list *refnames, struct strbuf *err) +/* + * Rewrite the packed-refs file, omitting any refs listed in + * 'refnames'. On error, leave packed-refs unchanged, write an error + * message to 'err', and return a nonzero value. + * + * The refs in 'refnames' needn't be sorted. `err` must not be NULL. + */ +static int repack_without_refs(struct string_list *refnames, struct strbuf *err) { struct ref_dir *packed; struct string_list_item *refname; |