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

Re: [PATCH] branch: do not fail a no-op --edit-desc

From
Rubén Justo <rjusto@gmail.com>
Date
Sep 30, 2022, 22:59 UTC
Message-ID
<0c875ba3-f2cd-7fe1-3192-7759e5cebdb7@gmail.com>
In-Reply-To
<xmqq7d1lom12.fsf@gitster.g>
On 30/9/22 0:26, Junio C Hamano wrote:
Show 10 quoted lines
>> And.. the message does not make it clear the situation: if there is
>> a previous description, will clear; if not, will keep.
> 
> If there is a previous description, then we use the behaviour we
> have had for ages (i.e. will remove).  If there is not a previous
> description, then we use the new behaviour (i.e. not attempt to
> remove and hence we do not show an error).  Either way, the end
> result is "the user indicated they do not want description by giving
> us an empty edit result.  After the command exits, the branch has no
> description".  

I was not clear, sorry. I was referring just to the concurrent-editors circumstance.

I find your last paragraph in the message might suggest that in case of concurrent editions, the last one won't overwrite if exits with an empty description. But it will if the branch had a previous branch description when that last execution started. You might want the reader to assume that the example follows the initial description "on a branch without branch description", in that case everything is fine.

That was what I was trying to review. The usage and why the error is avoided is well explained. And better in your v3, imo.

Thank you.
Un saludo.
Previous: Junio C HamanoNext: Rubén Justo
Message 6 of 13 in “branch: do not fail a no-op --edit-desc”
  1. branch: do not fail a no-op --edit-descJunio C Hamano, Sep 28, 2022
  2. Rubén JustoSep 28, 2022
  3. Junio C HamanoSep 28, 2022
  4. Rubén JustoSep 29, 2022
  5. Junio C HamanoSep 29, 2022
  6. Rubén JustoSep 30, 2022
  7. Rubén JustoOct 1, 2022
  8. branch: do not fail a no-op --edit-descJunio C Hamano, Sep 30, 2022
  9. Ævar Arnfjörð BjarmasonSep 30, 2022
  10. Junio C HamanoSep 30, 2022
  11. Ævar Arnfjörð BjarmasonSep 30, 2022
  12. Junio C HamanoSep 30, 2022
  13. branch: do not fail a no-op --edit-descJunio C Hamano, Sep 30, 2022

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.