Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651654 - repoman should split "-m" option into "-s/--summary" and "--body/-B" options
Summary: repoman should split "-m" option into "-s/--summary" and "--body/-B" options
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-26 22:45 UTC by Pacho Ramos
Modified: 2022-07-12 03:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2018-03-26 22:45:46 UTC
Someone recently warned me of using a too long commit message that wasn't complying GLEP 66, that defines that summary shouldn't be too long and we should rely on "body" for longer messages:
https://www.gentoo.org/glep/glep-0066.html#id8

The problem is that needing to use EDITOR all the time for that has some drawbacks, the first case that came to my mind was when the commit message is the same for multiple commits affecting different packages. Currently that is easy simply relying on bash history... but needing to go always into EDITOR would force me to copy&paste the message all the time and also manually edit the package name (that now is set automatically when run from command line directly).

I could rely on creating a temporal file with a commit message and rely on -M option... but needing to create that temporal file with the commit message every time looks overkill to me.

Then, I would suggest to split current -m into two options following the sames GLEP 66 uses to describe this: --summary and --body

--summary would have a character limitation (current -m would be kept for compatibility but would be the same as --summary to prevent long messages to be committed

--body could be used to pass the extra message without that constraints

Thanks
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:34 UTC
repoman support has been removed per bug 835013.

Please file a new bug (or, I suppose, reopen this one) if you feel this check is still applicable to pkgcheck and doesn't already exist.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:26:03 UTC
pkgcheck will let you use -m twice.