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

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

From
Rubén Justo <rjusto@gmail.com>
Date
Oct 13, 2023, 18:25 UTC
Message-ID
<329f635f-2050-421e-bd0d-943f8ad0de22@gmail.com>
In-Reply-To
<91e4ad3984147fcc277254a3f6836bf79f5c9550.1697211227.git.gitgitgadget@gmail.com>
On 13-oct-2023 15:33:47, Isoken June Ibizugbe via GitGitGadget wrote:
>  	    replace_each_worktree_head_symref(worktrees, oldref.buf, newref.buf,
>  					      logmsg.buf))
> -		die(_("branch renamed to %s, but HEAD is not updated!"), newname);
> +		die(_("branch renamed to %s, but HEAD is not updated"), newname);

Thanks. This change is not explicitly suggested in the guidelines, but I think it fits well in the spirit of this series.

Show 6 quoted lines
> @@ -965,7 +965,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
>  		const char *start_name = argc == 2 ? argv[1] : head;
>  
>  		if (filter.kind != FILTER_REFS_BRANCHES)
> -			die(_("the -a, and -r, options to 'git branch' do not take a branch name\n"
> +			die(_("the -a, and -r, options to 'git branch' do not take a branch name.\n"

You have mistakenly deleted this full stop in the previous [1/2] patch. Therefore, if you stop doing so, you do not need to add it here.

Previous: Junio C HamanoNext: Isoken June Ibizugbe via GitGitGadget
Message 5 of 7 in “branch.c: adjust error messages to coding guidelines”
  1. 0/2 [Outreachy][PATCH v2] branch.c: adjust error messages to coding guidelinesIsoken June Ibizugbe via GitGitGadget, Oct 13, 2023
  2. 2/2 branch.c: adjust error messages to coding guidelinesIsoken June Ibizugbe via GitGitGadget, Oct 13, 2023
  3. Isoken IbizugbeOct 13, 2023
  4. Junio C HamanoOct 13, 2023
  5. Rubén JustoOct 13, 2023
  6. 1/2 branch.c: ammend error messages for die()Isoken June Ibizugbe via GitGitGadget, Oct 13, 2023
  7. Rubén JustoOct 13, 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.