diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2011-03-26 16:04:25 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-28 17:02:57 -0700 |
commit | b892913d51795ee66d825bedd23e5c4ffe85ebb2 (patch) | |
tree | 77bdd69eeae4251d6478746c36dcb531d059eded /dir.h | |
parent | 9b125da490990ae4d08dd1517dc38b188b874fa8 (diff) | |
download | git-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.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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); |