summaryrefslogtreecommitdiff
path: root/test-path-utils.c
diff options
context:
space:
mode:
authorSebastian Schuberth <sschuberth@gmail.com>2013-10-10 22:49:43 +0200
committerJonathan Nieder <jrnieder@gmail.com>2013-10-14 07:32:53 -0700
commit7ffd18fce1eef2670661c2e7fd0cb3ef0b8b7fb7 (patch)
treeda0dab11f7a2d0fb521bf2291bf0072b2677523b /test-path-utils.c
parentf85f7947c38359c05b9df28fafe769fde9341326 (diff)
downloadgit-7ffd18fce1eef2670661c2e7fd0cb3ef0b8b7fb7.tar.gz
path-utils test: rename mingw_path function to print_pathjx/clean-interactive
mingw_path was introduced in abd4284 to output a mangled path as it is passed as an argument to main(). But the name is misleading because mangling does not come from MinGW, but from MSYS [1]. As abd4284 does not introduce any MSYS or MinGW specific code but just prints out argv[2] as it is passed to main(), give the function the more generic and less confusing name "print_path". [1] http://www.mingw.org/wiki/Posix_path_conversion Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'test-path-utils.c')
-rw-r--r--test-path-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-path-utils.c b/test-path-utils.c
index bb975e4d3e..3dd3744a57 100644
--- a/test-path-utils.c
+++ b/test-path-utils.c
@@ -116,7 +116,7 @@ int main(int argc, char **argv)
return 0;
}
- if (argc == 3 && !strcmp(argv[1], "mingw_path")) {
+ if (argc == 3 && !strcmp(argv[1], "print_path")) {
puts(argv[2]);
return 0;
}