Page MenuHomeFreeBSD

git-arc: Add list mode support for the update command
ClosedPublic

Authored by jhb on May 1 2024, 9:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 6:11 PM
Unknown Object (File)
Sat, May 4, 4:36 PM
Unknown Object (File)
May 2 2024, 6:10 AM
Unknown Object (File)
May 2 2024, 5:02 AM
Unknown Object (File)
May 1 2024, 11:39 PM
Subscribers
None

Details

Summary

This can be particularly useful to do bulk-updates of multiple commits
using the same message, e.g.

git arc update -lm "Move function xyz to libfoo" main..myfeature

Similar to the list mode for the create command, git arc will list all
the candidate revisions with a single prompt. Once that is confirmed,
all the revisions are updated without showing the diffs or pausing
further prompts.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57513
Build 54401: arc lint + arc unit

Event Timeline

jhb requested review of this revision.May 1 2024, 9:02 PM
jhb created this revision.
markj added inline comments.
tools/tools/git/git-arc.sh
675

Maybe add a helper function for fetching config variables? The same unwieldy pattern appears in a few places now.

This revision is now accepted and ready to land.May 3 2024, 1:29 PM