path: root/path.c
diff options
authorCarlos Martín Nieto <>2011-03-17 11:26:46 (GMT)
committerJunio C Hamano <>2011-03-17 23:08:30 (GMT)
commite2a57aac8a8a2b786739a5a93ea9dcfd2f0fd0e2 (patch)
treeb17a832e94e5b0e6eeff36616a46205f4eb84571 /path.c
parenta3ca9b0fbe21d7a2525877fe0c008b61c56f7104 (diff)
Name make_*_path functions more accurately
Rename the make_*_path functions so it's clearer what they do, in particlar make clear what the differnce between make_absolute_path and make_nonrelative_path is by renaming them real_path and absolute_path respectively. make_relative_path has an understandable name and is renamed to relative_path to maintain the name convention. The function calls have been replaced 1-to-1 in their usage. Signed-off-by: Carlos Martín Nieto <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'path.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index 8951333..4d73cc9 100644
--- a/path.c
+++ b/path.c
@@ -397,7 +397,7 @@ int set_shared_perm(const char *path, int mode)
return 0;
-const char *make_relative_path(const char *abs, const char *base)
+const char *relative_path(const char *abs, const char *base)
static char buf[PATH_MAX + 1];
int i = 0, j = 0;