Page MenuHomeFreeBSD

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

Authored by jhb on Wed, May 1, 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)
Thu, May 2, 6:10 AM
Unknown Object (File)
Thu, May 2, 5:02 AM
Unknown Object (File)
Wed, May 1, 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Wed, May 1, 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.Fri, May 3, 1:29 PM