diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-09-26 14:39:42 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-26 14:39:42 -0700 |
commit | 69a5bbbbfa2c659e819228c5e3cd5caa1d7f9a0b (patch) | |
tree | e1d2bc19ea9f13d5288e3509ab0d56e0cb2b1117 /cache.h | |
parent | 97b8860c071898d9e162678ea1035a8ced2f8b1f (diff) | |
parent | 9540ce5030853ffbb7e11c30aa59a5e45095d32c (diff) | |
download | git-69a5bbbbfa2c659e819228c5e3cd5caa1d7f9a0b.tar.gz |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |