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>
This commit is contained in:

committed by
Junio C Hamano

parent
a3ca9b0fbe
commit
e2a57aac8a
@ -11,9 +11,9 @@ int main(int argc, char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (argc >= 2 && !strcmp(argv[1], "make_absolute_path")) {
|
||||
if (argc >= 2 && !strcmp(argv[1], "real_path")) {
|
||||
while (argc > 2) {
|
||||
puts(make_absolute_path(argv[2]));
|
||||
puts(real_path(argv[2]));
|
||||
argc--;
|
||||
argv++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user