-
Notifications
You must be signed in to change notification settings - Fork 0
/
gear-commit.1.inc
76 lines (72 loc) · 2.13 KB
/
gear-commit.1.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.\" Copyright (C) 2006-2017 Alexey Gladkov <legion@altlinux.org>
.\" Copyright (C) 2006-2018 Dmitry V. Levin <ldv@altlinux.org>
.\" Copyright (C) 2006 Sergey Vlasov <vsu@altlinux.org>
.\"
.\" Additional documentation for the gear-commit command.
.\"
.\" This file is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program; if not, write to the Free Software
.\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
[NAME]
gear\-commit \- invoke git\-commit using last changelog entry from spec file for commit message
[CONFIGURATION]
.TP
.B gear.commit.edit-message
If set to
.IR true ,
an editor is invoked for further editing of the generated commit message.
.br
If set to
.IR false ,
the generated commit message is used without invoking an editor.
.br
The default is
.IR true .
.TP
.B gear.commit.require-message-save
If set to
.IR 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.
.br
The default is
.IR false .
[ENVIRONMENT]
.TP
.B GIT_DIR
If the
.B GIT_DIR
environment variable is set then it specifies a path to use instead of
the default for the base of the repository.
.TP
.B RULES
Specifies a gear rules filename.
.TP
.B TREE_ID
Specifies a commit-ish git object where to look for spec file.
.TP
.B GEAR_COMMIT
.B gear\-commit
always exports \fBGEAR_COMMIT\fR=\fI1\fR to the environment.
.TP
.B GEAR_COMMIT_AMEND
If
.I \-\-amend
option is given,
.B gear\-commit
also exports \fBGEAR_COMMIT_AMEND\fR=\fI1\fR.
[SEE ALSO]
.BR gear (1),
.BR git\-config (1).
.BR git\-commit (1).