Page MenuHomeFreeBSD

git-arc: Accept message via -m when updating reviews.
ClosedPublic

Authored by jhb on Nov 4 2022, 12:00 AM.
Tags
None
Referenced Files
F115365874: D37260.id.diff
Wed, Apr 23, 1:25 AM
F115357586: D37260.id112578.diff
Tue, Apr 22, 11:30 PM
F115351676: D37260.id.diff
Tue, Apr 22, 10:07 PM
F115348073: D37260.id112578.diff
Tue, Apr 22, 9:12 PM
F115346374: D37260.diff
Tue, Apr 22, 8:49 PM
Unknown Object (File)
Tue, Apr 1, 10:54 PM
Unknown Object (File)
Fri, Mar 28, 1:47 PM
Unknown Object (File)
Mar 15 2025, 1:05 PM
Subscribers

Details

Summary

If a -m argument is given to update, it is passed through to arc diff
when updating each review. Note that if an empty message is specified
via -m, arc diff will update the review without adding a note.

If an -m argument is not given, then the user's editor is invoked by
arc to supply a message for each review matching the previous
behavior.

This can be used to simplify the process for updating a set of
reviews, e.g.:

git checkout foo
git rebase main
git arc update -m "Rebase" main..

This will rebase the 'foo' branch and update the reviews for all
commits on the branch without invoking the user's editor separately
for each review.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Nov 4 2022, 12:00 AM
markj added inline comments.
tools/tools/git/git-arc.sh
536

There's extra indentation here.

This revision is now accepted and ready to land.Nov 4 2022, 2:42 PM
This revision was automatically updated to reflect the committed changes.
jhb marked an inline comment as done.