diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-09-26 23:39:42 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-26 23:39:42 +0200 |
commit | 69a5bbbbfa2c659e819228c5e3cd5caa1d7f9a0b (patch) | |
tree | e1d2bc19ea9f13d5288e3509ab0d56e0cb2b1117 /cache.h | |
parent | Update draft release notes to 2.2 (diff) | |
parent | refs: write packed_refs file using stdio (diff) | |
download | git-69a5bbbbfa2c659e819228c5e3cd5caa1d7f9a0b.tar.xz git-69a5bbbbfa2c659e819228c5e3cd5caa1d7f9a0b.zip |
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); |