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

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

From
Rubén Justo <rjusto@gmail.com>
Date
Oct 23, 2023, 20:17 UTC
Message-ID
<14df596a-d0ef-46aa-97c6-3c9f0da1975f@gmail.com>
In-Reply-To
<20231023160656.4341-1-isokenjune@gmail.com>
On 23-oct-2023 17:06:56, Isoken June Ibizugbe wrote:

Just for reference, to avoid confusion, this is technically the fourth version.

Show 8 quoted lines
> As per the CodingGuidelines document, it is recommended that error messages
> such as die(), error() and warning(), should start with a lowercase letter
> and should not end with a period.
> 
> This patch adjusts tests to match updated messages.
> 
> Signed-off-by: Isoken June Ibizugbe <isokenjune@gmail.com>
> ---

It is often convenient to include here, after this three dash line, a description of the changes introduced in the new iteration.

In this particular case, a range-diff is very helpful.
This is the range-diff with v2:
1:  a4e8bb1b4c ! 1:  c4ae0c1cce builtin/branch.c: adjust error messages to coding guidelines
    @@ Metadata
      ## Commit message ##
         builtin/branch.c: adjust error messages to coding guidelines
     
    -    As per the CodingGuidelines document, it is recommended that a single-line
    -    message provided to error messages such as die(), error() and warning(),
    -    should start with a lowercase letter and should not end with a period.
    -    Also this patch fixes the tests broken by the changes.
    +    As per the CodingGuidelines document, it is recommended that error messages
    +    such as die(), error() and warning(), should start with a lowercase letter
    +    and should not end with a period.
    +
    +    This patch adjusts tests to match updated messages.
     
         Signed-off-by: Isoken June Ibizugbe <isokenjune@gmail.com>
As we can see, the only difference is in the commit message.
The new wording is better; it avoids the distraction introduced in v2.
And, as Dragan suggested about /the other v3/, the wrapping is correct. 

The rest of the patch is equal to the previous iteration (v2), which already seemed correct to me.

Thank you.
Previous: Isoken June IbizugbeNext: Junio C Hamano
Message 4 of 5 in “builtin/branch.c: adjust error messages to coding guidelines”
  1. builtin/branch.c: adjust error messages to coding guidelinesIsoken June Ibizugbe, Oct 23, 2023
  2. Dragan SimicOct 23, 2023
  3. builtin/branch.c: adjust error messages to coding guidelinesIsoken June Ibizugbe, Oct 23, 2023
  4. Rubén JustoOct 23, 2023
  5. Junio C HamanoOct 23, 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.