git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 5/6] test-path-utils: Add subcommand "absolute_path"

From
Michael Haggerty <mhagger@alum.mit.edu>
Date
Aug 4, 2011, 04:47 UTC
Message-ID
<1312433268-11385-6-git-send-email-mhagger@alum.mit.edu>
In-Reply-To
<1312433268-11385-1-git-send-email-mhagger@alum.mit.edu>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
---
 test-path-utils.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/test-path-utils.c b/test-path-utils.c
index e767159..a410e30 100644
--- a/test-path-utils.c
+++ b/test-path-utils.c
@@ -20,6 +20,15 @@ int main(int argc, char **argv)
 		return 0;
 	}
 
+	if (argc >= 2 && !strcmp(argv[1], "absolute_path")) {
+		while (argc > 2) {
+			puts(absolute_path(argv[2]));
+			argc--;
+			argv++;
+		}
+		return 0;
+	}
+
 	if (argc == 4 && !strcmp(argv[1], "longest_ancestor_length")) {
 		int len = longest_ancestor_length(argv[2], argv[3]);
 		printf("%d\n", len);
-- 
1.7.6.8.gd2879
Previous: Michael HaggertyNext: Michael Haggerty
Message 6 of 7 in “git-check-attr should work for relative paths”
  1. 0/6 git-check-attr should work for relative pathsMichael Haggerty, Aug 4, 2011
  2. 1/6 git-check-attr: test that no output is written to stderrMichael Haggerty, Aug 4, 2011
  3. 2/6 git-check-attr: Demonstrate problems with unnormalized pathsMichael Haggerty, Aug 4, 2011
  4. 3/6 git-check-attr: Demonstrate problems with relative pathsMichael Haggerty, Aug 4, 2011
  5. 4/6 git-check-attr: Normalize pathsMichael Haggerty, Aug 4, 2011
  6. 5/6 test-path-utils: Add subcommand "absolute_path"Michael Haggerty, Aug 4, 2011
  7. 6/6 test-path-utils: Add subcommand "prefix_path"Michael Haggerty, Aug 4, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.