summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2008-10-27 09:22:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-10-31 00:00:14 (GMT)
commitfe2d7776d5191896e361973f478ca078fa95b324 (patch)
treed7aefac116a2a575831e7515612223a3b20e0bea /cache.h
parent9fa03c177ff826b439537072338af958fe01c257 (diff)
downloadgit-fe2d7776d5191896e361973f478ca078fa95b324.zip
git-fe2d7776d5191896e361973f478ca078fa95b324.tar.gz
git-fe2d7776d5191896e361973f478ca078fa95b324.tar.bz2
Add git_snpath: a .git path formatting routine with output buffer
The function's purpose is to replace git_path where the buffer of formatted path may not be reused by subsequent calls of the function or will be copied anyway. Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 aea13b0..3d5a08e 100644
--- a/cache.h
+++ b/cache.h
@@ -482,6 +482,8 @@ extern int check_repository_format(void);
extern char *mksnpath(char *buf, size_t n, const char *fmt, ...)
__attribute__((format (printf, 3, 4)));
+extern char *git_snpath(char *buf, size_t n, const char *fmt, ...)
+ __attribute__((format (printf, 3, 4)));
/* Return a statically allocated filename matching the sha1 signature */
extern char *mkpath(const char *fmt, ...) __attribute__((format (printf, 1, 2)));