aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-09-26 14:39:42 -0700
committerJunio C Hamano <gitster@pobox.com>2014-09-26 14:39:42 -0700
commit69a5bbbbfa2c659e819228c5e3cd5caa1d7f9a0b (patch)
treee1d2bc19ea9f13d5288e3509ab0d56e0cb2b1117 /cache.h
parent97b8860c071898d9e162678ea1035a8ced2f8b1f (diff)
parent9540ce5030853ffbb7e11c30aa59a5e45095d32c (diff)
downloadgit-69a5bbbbfa2c659e819228c5e3cd5caa1d7f9a0b.tar.gz
git-69a5bbbbfa2c659e819228c5e3cd5caa1d7f9a0b.tar.xz
Merge branch 'jk/write-packed-refs-via-stdio'
Optimize the code path to write out the packed-refs file, which especially matters in a repository with a large number of refs. * jk/write-packed-refs-via-stdio: refs: write packed_refs file using stdio
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index af590d507..a9eb7902c 100644
--- a/cache.h
+++ b/cache.h
@@ -1430,6 +1430,8 @@ extern const char *git_mailmap_blob;
/* IO helper functions */
extern void maybe_flush_or_die(FILE *, const char *);
+__attribute__((format (printf, 2, 3)))
+extern void fprintf_or_die(FILE *, const char *fmt, ...);
extern int copy_fd(int ifd, int ofd);
extern int copy_file(const char *dst, const char *src, int mode);
extern int copy_file_with_time(const char *dst, const char *src, int mode);