summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-08-17 20:31:49 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-17 21:53:39 (GMT)
commit828cc617c1908a16b36734f62bb10299c2cfba6f (patch)
treef0257c238120dad1776ce20a25dc98718417a635 /cache.h
parent049f28c3929fa722634ecb7bb39d78457018815a (diff)
downloadgit-828cc617c1908a16b36734f62bb10299c2cfba6f.zip
git-828cc617c1908a16b36734f62bb10299c2cfba6f.tar.gz
git-828cc617c1908a16b36734f62bb10299c2cfba6f.tar.bz2
[PATCH] Export relative path handling "prefix_path()" function
Not all programs necessarily have a pathspec array of pathnames, some of them (like git-update-cache) want to do things one file at a time. So export the single-path interface too. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
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 6365381..742378f 100644
--- a/cache.h
+++ b/cache.h
@@ -142,6 +142,7 @@ extern char *get_graft_file(void);
extern const char **get_pathspec(const char *prefix, char **pathspec);
extern const char *setup_git_directory(void);
+extern char *prefix_path(const char *prefix, int len, char *path);
#define alloc_nr(x) (((x)+16)*3/2)