summaryrefslogtreecommitdiff
path: root/pack-refs.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2013-04-22 21:52:32 +0200
committerJunio C Hamano <gitster@pobox.com>2013-05-01 15:33:11 -0700
commit32d462cea80cd52b2c3fa0d538aba7fcf079ba77 (patch)
tree564a901875d829862f6c823b676871225a8c535e /pack-refs.h
parent0c0c0bd25e4bea1fb1f48e8bca3ce9b68d69ee93 (diff)
downloadgit-32d462cea80cd52b2c3fa0d538aba7fcf079ba77.tar.gz
pack-refs: merge code from pack-refs.{c,h} into refs.{c,h}
pack-refs.c doesn't contain much code, and the code it does contain is closely related to reference handling. Moreover, there is some duplication between pack_refs() and repack_without_ref(). Therefore, merge pack-refs.c into refs.c and pack-refs.h into refs.h. The code duplication will be addressed in future commits. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-refs.h')
-rw-r--r--pack-refs.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/pack-refs.h b/pack-refs.h
deleted file mode 100644
index 518acfb370..0000000000
--- a/pack-refs.h
+++ /dev/null
@@ -1,18 +0,0 @@
-#ifndef PACK_REFS_H
-#define PACK_REFS_H
-
-/*
- * Flags for controlling behaviour of pack_refs()
- * PACK_REFS_PRUNE: Prune loose refs after packing
- * PACK_REFS_ALL: Pack _all_ refs, not just tags and already packed refs
- */
-#define PACK_REFS_PRUNE 0x0001
-#define PACK_REFS_ALL 0x0002
-
-/*
- * Write a packed-refs file for the current repository.
- * flags: Combination of the above PACK_REFS_* flags.
- */
-int pack_refs(unsigned int flags);
-
-#endif /* PACK_REFS_H */