summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-26 07:14:15 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-29 07:13:01 (GMT)
commit4ca0660816671f65546626b6e2c2038b6a347a8b (patch)
treed05036bf4b668e75bfb05b5cfcfcbabb92361591 /cache.h
parent9ef2b3cbf62d15aa0312bde349347873d7c0f399 (diff)
downloadgit-4ca0660816671f65546626b6e2c2038b6a347a8b.zip
git-4ca0660816671f65546626b6e2c2038b6a347a8b.tar.gz
git-4ca0660816671f65546626b6e2c2038b6a347a8b.tar.bz2
working from subdirectory: preparation
- prefix_filename() is like prefix_path() but can be used to name any file on the filesystem, not the files that might go into the index file. - setup_git_directory_gently() tries to find the GIT_DIR, but does not die() if called outside a git repository. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 634b5aa..f9b367f 100644
--- a/cache.h
+++ b/cache.h
@@ -147,8 +147,10 @@ extern char *get_graft_file(void);
#define ALTERNATE_DB_ENVIRONMENT "GIT_ALTERNATE_OBJECT_DIRECTORIES"
extern const char **get_pathspec(const char *prefix, const char **pathspec);
+extern const char *setup_git_directory_gently(int *);
extern const char *setup_git_directory(void);
extern const char *prefix_path(const char *prefix, int len, const char *path);
+extern const char *prefix_filename(const char *prefix, int len, const char *path);
#define alloc_nr(x) (((x)+16)*3/2)