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

[Improvements on messages 5/5] revision.c: trivial fix to message

From
Alexander Shopov <ash@kambanaria.org>
Date
Feb 16, 2024, 10:15 UTC
Message-ID
<20240216101647.28837-6-ash@kambanaria.org>
In-Reply-To
<20240216101647.28837-1-ash@kambanaria.org>

ancestry-path is an option, not a command - mark it as such. This brings it in sync with the rest of usages in the file

Signed-off-by: Alexander Shopov <ash@kambanaria.org>
---
 revision.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/revision.c b/revision.c
index 2424c9bd67..e29aa10781 100644
--- a/revision.c
+++ b/revision.c
@@ -2320,7 +2320,7 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
 	} else if (skip_prefix(arg, "--ancestry-path=", &optarg)) {
 		struct commit *c;
 		struct object_id oid;
-		const char *msg = _("could not get commit for ancestry-path argument %s");
+		const char *msg = _("could not get commit for --ancestry-path argument %s");

 		revs->ancestry_path = 1;
 		revs->simplify_history = 0;
--
2.43.2
Previous: Alexander ShopovNext: Junio C Hamano
Message 7 of 9 in “[Improvements on messages 0/5] Disambuiguate between options and commands”
  1. Alexander ShopovFeb 16, 2024
  2. 1/5 rebase: trivial fix of error messageAlexander Shopov, Feb 16, 2024
  3. Alex HenrieFeb 16, 2024
  4. 2/5 transport-helper.c: trivial fix of error messageAlexander Shopov, Feb 16, 2024
  5. 3/5 builtin/remote.c: trivial fix of error messageAlexander Shopov, Feb 16, 2024
  6. 4/5 builtin/clone.c: trivial fix of messageAlexander Shopov, Feb 16, 2024
  7. 5/5 revision.c: trivial fix to messageAlexander Shopov, Feb 16, 2024
  8. Junio C HamanoFeb 16, 2024
  9. Junio C HamanoMar 5, 2024

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.