diff options
author | Heiko Voigt <hvoigt@hvoigt.net> | 2010-07-07 15:39:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-07-07 09:48:21 -0700 |
commit | 0bad611b1ebacf170976a10690bd0169f8d372bf (patch) | |
tree | eb0499c1c9a26e85ea3f06843528c900bf1a898f /cache.h | |
parent | 78db709ae59da26de76264b79df3a7dc4d87e65c (diff) | |
download | git-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |