aboutsummaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-08-17 13:31:49 -0700
committerJunio C Hamano <junkio@cox.net>2005-08-17 14:53:39 -0700
commit828cc617c1908a16b36734f62bb10299c2cfba6f (patch)
treef0257c238120dad1776ce20a25dc98718417a635 /setup.c
parent049f28c3929fa722634ecb7bb39d78457018815a (diff)
downloadgit-828cc617c1908a16b36734f62bb10299c2cfba6f.tar.gz
git-828cc617c1908a16b36734f62bb10299c2cfba6f.tar.xz
[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 'setup.c')
-rw-r--r--setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 1710b1685..b8789de5c 100644
--- a/setup.c
+++ b/setup.c
@@ -1,6 +1,6 @@
#include "cache.h"
-static char *prefix_path(const char *prefix, int len, char *path)
+char *prefix_path(const char *prefix, int len, char *path)
{
char *orig = path;
for (;;) {