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
Unknown Object (File)
Mon, Feb 10, 12:22 AM
Unknown Object (File)
Sun, Feb 9, 9:43 AM
Unknown Object (File)
Jan 24 2025, 11:09 AM
Unknown Object (File)
Jan 19 2025, 9:27 PM
Unknown Object (File)
Dec 28 2024, 1:39 PM
Unknown Object (File)
Dec 25 2024, 8:26 PM
Unknown Object (File)
Dec 21 2024, 7:26 AM
Unknown Object (File)
Dec 15 2024, 7:17 AM
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.