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
F102721068: D45050.diff
Sat, Nov 16, 8:29 AM
F102669078: D45050.id.diff
Fri, Nov 15, 3:05 PM
Unknown Object (File)
Sep 26 2024, 7:59 PM
Unknown Object (File)
Sep 25 2024, 8:19 PM
Unknown Object (File)
Sep 22 2024, 6:50 PM
Unknown Object (File)
Sep 22 2024, 5:09 PM
Unknown Object (File)
Sep 22 2024, 7:09 AM
Unknown Object (File)
Sep 15 2024, 12:23 AM
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 Not Applicable
Unit
Tests Not Applicable

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