aboutsummaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2011-03-26 16:04:25 +0700
committerJunio C Hamano <gitster@pobox.com>2011-03-28 17:02:57 -0700
commitb892913d51795ee66d825bedd23e5c4ffe85ebb2 (patch)
tree77bdd69eeae4251d6478746c36dcb531d059eded /dir.h
parent9b125da490990ae4d08dd1517dc38b188b874fa8 (diff)
downloadgit-b892913d51795ee66d825bedd23e5c4ffe85ebb2.tar.gz
git-b892913d51795ee66d825bedd23e5c4ffe85ebb2.tar.xz
Kill off get_relative_cwd()
Function dir_inside_of() does something similar (correctly), but looks easier to understand and does not bundle cwd to its business. Given get_relative_cwd's only user is is_inside_dir, we can kill it for good. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/dir.h b/dir.h
index 86a99ed9c..1cf271098 100644
--- a/dir.h
+++ b/dir.h
@@ -81,7 +81,6 @@ extern void add_exclude(const char *string, const char *base,
extern void free_excludes(struct exclude_list *el);
extern int file_exists(const char *);
-extern char *get_relative_cwd(char *buffer, int size, const char *dir);
extern int is_inside_dir(const char *dir);
extern int dir_inside_of(const char *subdir, const char *dir);