summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorHeiko Voigt <hvoigt@hvoigt.net>2010-07-07 15:39:11 +0200
committerJunio C Hamano <gitster@pobox.com>2010-07-07 09:48:21 -0700
commit0bad611b1ebacf170976a10690bd0169f8d372bf (patch)
treeeb0499c1c9a26e85ea3f06843528c900bf1a898f /cache.h
parent78db709ae59da26de76264b79df3a7dc4d87e65c (diff)
downloadgit-0bad611b1ebacf170976a10690bd0169f8d372bf.tar.gz
Teach ref iteration module about submodules
We will use this in a later patch to extend setup_revisions() to load revisions directly from a submodule. Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index c9fa3df7f5..32932e87b0 100644
--- a/cache.h
+++ b/cache.h
@@ -641,6 +641,9 @@ extern char *git_pathdup(const char *fmt, ...)
/* Return a statically allocated filename matching the sha1 signature */
extern char *mkpath(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
extern char *git_path(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
+extern char *git_path_submodule(const char *path, const char *fmt, ...)
+ __attribute__((format (printf, 2, 3)));
+
extern char *sha1_file_name(const unsigned char *sha1);
extern char *sha1_pack_name(const unsigned char *sha1);
extern char *sha1_pack_index_name(const unsigned char *sha1);