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

Re: [PATCH v2] builtin/branch.c: adjust error messages to coding guidelines

From
Rubén Justo <rjusto@gmail.com>
Date
Oct 21, 2023, 10:27 UTC
Message-ID
<c0d92716-2add-43c2-945a-cb0c9cb6b6a6@gmail.com>
In-Reply-To
<331e1ab3-2e8c-497d-a05d-ef197d664188@gmail.com>
On 19-oct-2023 21:20:24, Rubén Justo wrote:
> So, aside from the confusing message, this iteration looks good to me.

Reviewing again the messages in builtin/branch.c, if you finally re-roll, maybe you want to add:

diff --git a/builtin/branch.c b/builtin/branch.c
index e7ee9bd0f1..31da889e95 100644
--- a/builtin/branch.c
+++ b/builtin/branch.c
@@ -777,7 +777,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
        if (!strcmp(head, "HEAD"))
                filter.detached = 1;
        else if (!skip_prefix(head, "refs/heads/", &head))
-               die(_("HEAD not found below refs/heads!"));
+               die(_("HEAD not found below refs/heads"));
 
But if you don't include this nit, that's fine with me.  I still think
the changes you've already made are correct.

Thank you.
Previous: Rubén JustoNext: Isoken Ibizugbe
Message 9 of 12 in “branch.c: adjust error messages to coding guidelines”
  1. Isoken June IbizugbeOct 18, 2023
  2. Rubén JustoOct 18, 2023
  3. Junio C HamanoOct 18, 2023
  4. builtin/branch.c: adjust error messages to coding guidelinesIsoken June Ibizugbe, Oct 19, 2023
  5. Rubén JustoOct 19, 2023
  6. Junio C HamanoOct 20, 2023
  7. Isoken IbizugbeOct 20, 2023
  8. Rubén JustoOct 21, 2023
  9. Rubén JustoOct 21, 2023
  10. Isoken IbizugbeOct 20, 2023
  11. Christian CouderOct 20, 2023
  12. Junio C HamanoOct 20, 2023

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.