pkgdev commit - create git commit¶
Synopsis¶
pkgdev commit [–config CONFIG_FILE] [–domain DOMAIN] [-h] [–debug] [-q] [-v] [–color BOOLEAN] [-b BUG] [-c CLOSES[:RESOLUTION]] [-T NAME:VALUE] [-n] [-s [BOOLEAN]] [-A [BOOLEAN]] [–mangle [BOOLEAN]] [–signoff [BOOLEAN]] [–gpg-sign | –no-gpg-sign] [-d DISTDIR] [-m MSG | -M FILE] [-e] [-u | -a]
Config Options¶
--config CONFIG_FILELoad custom pkgdev scan settings from a given file.
Note that custom user settings override all other system and repo-level settings.
It’s also possible to disable all types of settings loading by specifying an argument of ‘false’ or ‘no’.
--domain DOMAINcustom pkgcore domain to use for this operation
Base Options¶
-h, --helpShow this help message and exit. To get more information see the related man page.
--debugEnable debug checks and show verbose debug output.
-q, --quietSuppress non-error, informational messages.
-v, --verboseIncrease the verbosity of various output.
--color BOOLEANToggle colored output support. This can be used to forcibly enable color support when piping output or other situations where stdout is not a tty.
Commit Options¶
-b, --bug BUGadd Bug tag for a given Gentoo or upstream bug
-c, --closes CLOSES[:RESOLUTION]Indicate that a bug or PR may be closed. The optional resolution string for Gentoo’s Bugzilla describes what happened to a bug. It is case-insensitive and must be one of FIXED, OBSOLETE or PKGREMOVED.
-T, --tag NAME:VALUEadd commit tag
-n, --dry-runPerform all actions without creating a commit.
-s, --scan [BOOLEAN]By default,
pkgdev commitdoesn’t scan for QA errors. This option enables using pkgcheck to scan the staged changes for issues, erroring out if any failures are found.-A, --ask [BOOLEAN]When running with the -s/–scan option enabled,
pkgdev commitwill ask for confirmation before creating a commit if it detects failure results.--mangle [BOOLEAN]File mangling automatically modifies the content of relevant staged files including updating copyright headers and fixing EOF newlines.
This is performed by default for the gentoo repo, but can be forcibly disabled or enabled as required.
--signoff [BOOLEAN]Add a Signed-off-by trailer by the committer at the end of the commit log message.
For committing to the Gentoo repository, under GLEP-76, the committer shall certify agreement to the Certificate of Origin by adding Signed-off-by line containing the committer’s legal name.
--gpg-sign, --no-gpg-signPass
--gpg-signor--no-gpg-signto thegit commitcommand. This option enables to override the default behavior or the behavior defined bysign-commits = trueinmetadata/layout.conffile.-d, --distdir DISTDIRUse a specified target directory for downloads instead of the configured DISTDIR.
-m, --message MSGUse a given message as the commit message. If multiple -m options are specified, their values are concatenated as separate paragraphs.
Note that the first value will be used for the commit summary and if it’s empty then a generated summary will be used if available.
-M, --message-template FILEUse content from the given file as a commit message template. The commit summary prefix ‘*: ‘ is automatically replaced by a generated prefix if one exists for the related staged changes.
-e, --editThis option will ask git to open the commit message in an editor before commit. The git configuration is used to select the editor.
-u, --updatestage all changed files
-a, --allstage all changed/new/removed files