summaryrefslogtreecommitdiff
path: root/pack-refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-05-29 14:23:49 -0700
committerJunio C Hamano <gitster@pobox.com>2013-05-29 14:23:49 -0700
commit2f1ef15070a8664d3194d164f20283d78571e51c (patch)
treef38c2cbca2dc96840ae37e710c2c597f31dee2cd /pack-refs.h
parentc51afbbd18f51beb186afdfa8bbe35c13a782df7 (diff)
parent9da31cb027aa5dac3d4914a88faa8830f0578c88 (diff)
downloadgit-2f1ef15070a8664d3194d164f20283d78571e51c.tar.gz
Merge branch 'mh/packed-refs-various'
Update reading and updating packed-refs file, correcting corner case bugs. * mh/packed-refs-various: (33 commits) refs: handle the main ref_cache specially refs: change do_for_each_*() functions to take ref_cache arguments pack_one_ref(): do some cheap tests before a more expensive one pack_one_ref(): use write_packed_entry() to do the writing pack_one_ref(): use function peel_entry() refs: inline function do_not_prune() pack_refs(): change to use do_for_each_entry() refs: use same lock_file object for both ref-packing functions pack_one_ref(): rename "path" parameter to "refname" pack-refs: merge code from pack-refs.{c,h} into refs.{c,h} pack-refs: rename handle_one_ref() to pack_one_ref() refs: extract a function write_packed_entry() repack_without_ref(): write peeled refs in the rewritten file t3211: demonstrate loss of peeled refs if a packed ref is deleted refs: change how packed refs are deleted search_ref_dir(): return an index rather than a pointer repack_without_ref(): silence errors for dangling packed refs t3210: test for spurious error messages for dangling packed refs refs: change the internal reference-iteration API refs: extract a function peel_entry() ...
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 */