summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 049f28c)
raw | patch | inline | side by side (parent: 049f28c)
author | Linus Torvalds <torvalds@osdl.org> | |
Wed, 17 Aug 2005 20:31:49 +0000 (13:31 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 17 Aug 2005 21:53:39 +0000 (14:53 -0700) |
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>
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>
cache.h | patch | blob | history | |
setup.c | patch | blob | history |
index 6365381c17f9255240004818f1c1a257d68b75f9..742378f40ffb3746c72af7e470c94fe9735ca0a4 100644 (file)
--- a/cache.h
+++ b/cache.h
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)
index 1710b1685463e481d1c7ff5471bee6774d4b9c32..b8789de5c523d72110187960fb887852732f8486 100644 (file)
--- a/setup.c
+++ b/setup.c
#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 (;;) {