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

Re: Updating the commit message for reverts

From
Danh Doan <congdanhqx@gmail.com>
Date
Dec 28, 2019, 13:20 UTC
Message-ID
<20191228132022.GD24268@danh.dev>
In-Reply-To
<CAEsQYpMJGbw3L66vCd25Ht0bTBzvvt1yMRd2U3=u3U-BZukyzg@mail.gmail.com>
On 2019-12-27 11:13:47+0100, Gal Paikin <paiking@google.com> wrote:
Show 14 quoted lines
> Hi,
> Thanks for the reply!
> 
> So the idea of changing from "Revert Revert" to "Reland", "reapply"
> has a big problem: sometimes Revert^2 actually means 'reverting
> "Revert"' since "Revert" introduced a bug that wasn't in the original
> change.
> 
> So to your question, I don't know what Revert^47 means since it
> depends on each individual case. Sometimes it actually means "Revert"
> and sometimes it means "Reland".
> 
> So do people actually use it? Yes! Many users reported to me that it
> is not that unusual to get to "Revert^6", and it is very usual and

I've seen Revert x6 in a code base, I couldn't get to know the reason for that reversion war. I think it could be seen more in some in-house web development that uses trunk-based development, code is being tested with CI/CD, lightly tested, squash-merged to master, then run into problem in staging (or worst, production, because not enough traffix was generated for testing environment).

Show 9 quoted lines
> common to get to "Revert^2/3/4". It is also useful for the users to
> know the number of the revert, according to the reports. Here is an
> example:
> https://android-review.googlesource.com/c/platform/art/+/352330
> Feel free to also search for "Revert^2/3/4" to find many results.
> 
> Anyway, I am certain that "Revert^3" is better than "Revert revert
> revert". There is definitely no clear way to solve this issue, but
> perhaps "nth revert" would be a more "human language" solution?

In my very personal opinion, "nth revert" is a poor choice. At a first glance, I would take it as:

	This is the "nth revert", after applying this patch n times.
-- 
Danh
Previous: Gal PaikinNext: Junio C Hamano
Message 4 of 8 in “Updating the commit message for reverts”
  1. Gal PaikinDec 24, 2019
  2. Junio C HamanoDec 24, 2019
  3. Gal PaikinDec 27, 2019
  4. Danh DoanDec 28, 2019
  5. Junio C HamanoDec 30, 2019
  6. Jonathan NiederDec 30, 2019
  7. Jonathan NiederDec 30, 2019
  8. Oswald BuddenhagenDec 30, 2019

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.