aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-05 11:31:32 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-05 11:31:32 -0700
commit723c31fea2f1c4994de837bda9022ffa8b6de1bb (patch)
tree4c8c636dd58a7489cf033f3ac8682aeab453385d /cache.h
parent7a662e896bcd391265477e304d7af6e5d2ca1deb (diff)
downloadgit-723c31fea2f1c4994de837bda9022ffa8b6de1bb.tar.gz
Add "git_path()" and "head_ref()" helper functions.
"git_path()" returns a static pathname pointer into the git directory using a printf-like format specifier. "head_ref()" works like "for_each_ref()", except for just the HEAD.
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index c79c70f713..c84e797fdb 100644
--- a/cache.h
+++ b/cache.h
@@ -158,6 +158,7 @@ extern void rollback_index_file(struct cache_file *);
#define TYPE_CHANGED 0x0040
/* Return a statically allocated filename matching the sha1 signature */
+extern char *git_path(const char *fmt, ...);
extern char *sha1_file_name(const unsigned char *sha1);
/* Read and unpack a sha1 file into memory, write memory to a sha1 file */