diff options
author | Carlos Martín Nieto <cmn@elego.de> | 2011-03-17 12:26:46 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-17 16:08:30 -0700 |
commit | e2a57aac8a8a2b786739a5a93ea9dcfd2f0fd0e2 (patch) | |
tree | b17a832e94e5b0e6eeff36616a46205f4eb84571 /cache.h | |
parent | a3ca9b0fbe21d7a2525877fe0c008b61c56f7104 (diff) | |
download | git-e2a57aac8a8a2b786739a5a93ea9dcfd2f0fd0e2.tar.gz |
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 <cmn@elego.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -731,9 +731,9 @@ static inline int is_absolute_path(const char *path) return path[0] == '/' || has_dos_drive_prefix(path); } int is_directory(const char *); -const char *make_absolute_path(const char *path); -const char *make_nonrelative_path(const char *path); -const char *make_relative_path(const char *abs, const char *base); +const char *real_path(const char *path); +const char *absolute_path(const char *path); +const char *relative_path(const char *abs, const char *base); int normalize_path_copy(char *dst, const char *src); int longest_ancestor_length(const char *path, const char *prefix_list); char *strip_path_suffix(const char *path, const char *suffix); |