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)
Wed, Sep 18, 4:53 PM
Unknown Object (File)
Wed, Sep 18, 2:43 PM
Unknown Object (File)
Wed, Sep 18, 11:39 AM
Unknown Object (File)
Mon, Sep 9, 11:55 AM
Unknown Object (File)
Sat, Sep 7, 2:26 PM
Unknown Object (File)
Thu, Sep 5, 12:10 AM
Unknown Object (File)
Jul 20 2024, 9:48 AM
Unknown Object (File)
Jul 12 2024, 10:31 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.