gear-commit(1)

GEAR-COMMIT(1) User Commands GEAR-COMMIT(1)

NAME

gear-commit - invoke git-commit using last changelog entry from spec file for commit message

SYNOPSIS

gear-commit [options] [git-commit options] [--] <filepattern>...

OPTIONS

--spec=FILE
do not look for specfile in repository, use given FILE instead;
--no-edit
do not edit the message taken from changelog entry or with -m option;
-e, --edit
edit the message before commit;
-m, --message=TEXT
use given TEXT for commit message;
-V, --version
print program version and exit;
-h, --help
show this text and exit.

CONFIGURATION

gear.commit.edit-message
If set to true, an editor is invoked for further editing of the generated commit message.
If set to false, the generated commit message is used without invoking an editor.
The default is true.
gear.commit.require-message-save
If set to true, requires the generated commit message to be edited and saved by the user; If the user exits the editor without saving a modified commit message, the commit is aborted.
The default is false.

ENVIRONMENT

GIT_DIR
If the GIT_DIR environment variable is set then it specifies a path to use instead of the default for the base of the repository.
RULES
Specifies a gear rules filename.
TREE_ID
Specifies a commit-ish git object where to look for spec file.
GEAR_COMMIT
gear-commit always exports GEAR_COMMIT=1 to the environment.
GEAR_COMMIT_AMEND
If --amend option is given, gear-commit also exports GEAR_COMMIT_AMEND=1.

AUTHOR

Written by Alexey Gladkov <legion@altlinux.org>

REPORTING BUGS

Report bugs to http://bugzilla.altlinux.org/

COPYRIGHT

Copyright © 2006-2017 Alexey Gladkov <legion@altlinux.org>
Copyright © 2006-2016 Dmitry V. Levin <ldv@altlinux.org>
Copyright © 2006 Sergey Vlasov <vsu@altlinux.org>
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

gear(1), git-config(1). git-commit(1).

March 2021 gear 2.5.0