Changing commit message

30 views
Skip to first unread message

Gal Paikin

unread,
Dec 19, 2019, 12:03:32 PM12/19/19
to Repo and Gerrit Discussion
Hi all,

Whenever users revert a change, the subject of that change is suggested to be:
"Revert <Change X>".
But if you revert this change, the suggested subject is "Revert "Revert <Change X>"", and clearly if you keep doing it more than twice it doesn't scale.

The idea is to change the subject suggested to the user.
It seems like many users are already using "Revert^N" instead of "Revert" N times, and that seems to work for them.
Another suggestion is an easier to understand language like "Nth Revert" or something like that.
Also, it's possible to name them "Revert X" and "Retry X", when Retry means "revert the revert".

What are you using? Any other suggestions?

Best,
Gal

Oswald Buddenhagen

unread,
Dec 19, 2019, 12:22:07 PM12/19/19
to Repo and Gerrit Discussion
On Thu, Dec 19, 2019 at 06:03:14PM +0100, 'Gal Paikin' via Repo and Gerrit Discussion wrote:
>Also, it's possible to name them "Revert X" and "Retry X", when Retry
>means "revert the revert".
>
canonical would be 're-apply "X"'.

these can be reverted again, and then re-applied again:
're-apply "X" (2nd time)'

sometimes i also use "X, take n", but that generally refers to
non-verbatim re-applications, and the description then states something
like "this is based on <SHA1>, but ...".

Jonathan Nieder

unread,
Dec 19, 2019, 12:30:15 PM12/19/19
to Gal Paikin, Repo and Gerrit Discussion
Hi,

Gal Paikin wrote:

Whenever users revert a change, the subject of that change is suggested to be:
"Revert <Change X>".
But if you revert this change, the suggested subject is "Revert "Revert <Change X>"", and clearly if you keep doing it more than twice it doesn't scale.


Both git.git and linux.git just use '"Revert "Revert "...'. If you want to change that convention, it might make sense to get in touch with g...@vger.kernel.org so the change can be built in to "git revert" and the world can stay consistent.

Thanks,
Jonathan

Nasser Grainawi

unread,
Dec 19, 2019, 12:33:19 PM12/19/19
to Jonathan Nieder, Gal Paikin, Repo and Gerrit Discussion
+1 for consistency


Thanks,
Jonathan

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAKokkPEnhjxN%2BJLxAEXicXF5b%2BZBQwj7Ehdo34RdAi-13eobcg%40mail.gmail.com.

Gal Paikin

unread,
Dec 19, 2019, 12:39:47 PM12/19/19
to Nasser Grainawi, Jonathan Nieder, Repo and Gerrit Discussion, g...@vger.kernel.org

Python Prog

unread,
Dec 19, 2019, 5:19:19 PM12/19/19
to Repo and Gerrit Discussion
Good question,
 if you keep doing it more than twice it doesn't scale.
+1 for changing this behaviour,probably use RevertN ,Reapply N convention,someconvention rather than continuos "Revert Revert Revert .."
Reply all
Reply to author
Forward
0 new messages