diff options
author | Andreas Ericsson <exon@op5.se> | 2005-11-17 20:37:14 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-19 20:50:37 -0800 |
commit | 54f4b87454824fedc629219620ce9b7cdcab3d27 (patch) | |
tree | 8b9b1ec83ab540627076b2fd36da56055be75d14 /cache.h | |
parent | 942c1f53aef03cb3d8b5c39b38997a379c3fad20 (diff) | |
download | git-54f4b87454824fedc629219620ce9b7cdcab3d27.tar.gz git-54f4b87454824fedc629219620ce9b7cdcab3d27.tar.xz |
Library code for user-relative paths, take three.
This patch provides the work-horse of the user-relative paths feature,
using Linus' idea of a blind chdir() and getcwd() which makes it
remarkably simple.
Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -192,6 +192,7 @@ extern int diff_rename_limit_default; /* Return a statically allocated filename matching the sha1 signature */ extern char *mkpath(const char *fmt, ...) __attribute__((format (printf, 1, 2))); +extern char *enter_repo(char *path, int strict); extern char *git_path(const char *fmt, ...) __attribute__((format (printf, 1, 2))); extern char *sha1_file_name(const unsigned char *sha1); extern char *sha1_pack_name(const unsigned char *sha1); |