Page MenuHomeFreeBSD

mfc-candidates.lua: add -F fmt option
ClosedPublic

Authored by bz on Oct 17 2025, 5:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 10:34 PM
Unknown Object (File)
Sun, Nov 23, 1:11 AM
Unknown Object (File)
Nov 18 2025, 6:46 AM
Unknown Object (File)
Nov 17 2025, 5:47 PM
Unknown Object (File)
Nov 14 2025, 9:39 AM
Unknown Object (File)
Nov 9 2025, 1:04 PM
Unknown Object (File)
Nov 6 2025, 8:50 AM
Unknown Object (File)
Nov 3 2025, 5:36 PM
Subscribers

Details

Summary

Add -F fmt option to give a free format string to git show --pretty=.
It can be used, for example, as:
./tools/tools/git/mfc-candidates.lua -X exclude-list-15 -F "%h %cD %s"
to see which commits have passed the minimum 3 days of waiting before
MFCing, ot to see which group of commits belong together.

MFC after: 3 days

Test Plan

A take add adding the option to specify the git show format.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Oct 17 2025, 5:06 PM
This comment was removed by bz.

LGTM with one pedantic nit

tools/tools/git/mfc-candidates.lua
120

I guess we should sort the options. We have examples in the tree already for both -F -f -t -u -X (alpha order, uppercase first) and -F -X -f -t -u

bz edited the test plan for this revision. (Show Details)

I do not like either option particularly well as I would have
preferred to keep the "important" options first but this seems
less intrusive.

bz marked an inline comment as done.Oct 17 2025, 5:43 PM
This revision is now accepted and ready to land.Oct 17 2025, 5:44 PM
This revision was automatically updated to reflect the committed changes.