diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-05-23 16:06:01 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-23 16:06:01 -0700 |
commit | e5e9714a106ab668ac982cf73f31919eb4e354fd (patch) | |
tree | 01c02ee795feeb0b7594ab9d91f20bfe619d3042 /cache.h | |
parent | 6aad47dec7a72bb36c64afb6c43f4dbcaa49e7f9 (diff) | |
parent | bbefaa1f38a47e06c32612edc2f64a0168cc40b2 (diff) | |
download | git-e5e9714a106ab668ac982cf73f31919eb4e354fd.tar.gz |
Merge branch 'bc/repack'
* bc/repack:
Documentation/git-repack.txt: document new -A behaviour
let pack-objects do the writing of unreachable objects as loose objects
add a force_object_loose() function
builtin-gc.c: deprecate --prune, it now really has no effect
git-gc: always use -A when manually repacking
repack: modify behavior of -A option to leave unreferenced objects unpacked
Conflicts:
builtin-pack-objects.c
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -521,6 +521,7 @@ extern void * read_sha1_file(const unsigned char *sha1, enum object_type *type, extern int hash_sha1_file(const void *buf, unsigned long len, const char *type, unsigned char *sha1); extern int write_sha1_file(void *buf, unsigned long len, const char *type, unsigned char *return_sha1); extern int pretend_sha1_file(void *, unsigned long, enum object_type, unsigned char *); +extern int force_object_loose(const unsigned char *sha1, time_t mtime); extern int check_sha1_signature(const unsigned char *sha1, void *buf, unsigned long size, const char *type); |