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

[PATCH] cat-file: be consistent in usage string and documentation.

From
Junio C Hamano <junkio@cox.net>
Date
Jul 14, 2005, 03:23 UTC
Message-ID
<7vvf3ekr43.fsf@assigned-by-dhcp.cox.net>

Now that we have something called tag object, and a notion of "tags" stored in .git/refs/tags/ directory, the word "tagname" has become misleading in the usage string. The documentation already calls that <type>.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 cat-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
61a4ebfb09cee6955f80a863b9651204ba17117a
diff --git a/cat-file.c b/cat-file.c
--- a/cat-file.c
+++ b/cat-file.c
@@ -13,7 +13,7 @@ int main(int argc, char **argv)
 	unsigned long size;
 
 	if (argc != 3 || get_sha1(argv[2], sha1))
-		usage("git-cat-file [-t | -s | tagname] <sha1>");
+		usage("git-cat-file [-t | -s | <type>] <sha1>");
 
 	if (!strcmp("-t", argv[1]) || !strcmp("-s", argv[1])) {
 		if (!sha1_object_info(sha1, type,
Message 1 of 1 in “cat-file: be consistent in usage string and documentation.”
  1. cat-file: be consistent in usage string and documentation.Junio C Hamano, Jul 14, 2005

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.