summaryrefslogtreecommitdiffstats
path: root/test-path-utils.c
diff options
context:
space:
mode:
authorDavid Reiss <dreiss@facebook.com>2008-05-20 08:49:00 +0200
committerJunio C Hamano <gitster@pobox.com>2008-05-23 23:15:01 +0200
commitd553e737897e8edbbc2092bf345fc58b2dae5251 (patch)
tree9de693a3d6cd4f0f76674925adc752476f4d00c5 /test-path-utils.c
parentImplement normalize_absolute_path (diff)
downloadgit-d553e737897e8edbbc2092bf345fc58b2dae5251.tar.xz
git-d553e737897e8edbbc2092bf345fc58b2dae5251.zip
Fold test-absolute-path into test-path-utils
Signed-off-by: David Reiss <dreiss@facebook.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-path-utils.c')
-rw-r--r--test-path-utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-path-utils.c b/test-path-utils.c
index 1bd43216f6..842b58018f 100644
--- a/test-path-utils.c
+++ b/test-path-utils.c
@@ -9,5 +9,13 @@ int main(int argc, char **argv)
puts(buf);
}
+ if (argc >= 2 && !strcmp(argv[1], "make_absolute_path")) {
+ while (argc > 2) {
+ puts(make_absolute_path(argv[2]));
+ argc--;
+ argv++;
+ }
+ }
+
return 0;
}