From d553e737897e8edbbc2092bf345fc58b2dae5251 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Mon, 19 May 2008 23:49:00 -0700 Subject: Fold test-absolute-path into test-path-utils Signed-off-by: David Reiss Signed-off-by: Junio C Hamano --- test-path-utils.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test-path-utils.c') 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; } -- cgit v1.2.3