1
-
2
- exports . fields = [ { code : '%H' ,
1
+
2
+ const fields = exports . fields = [
3
+ { code : '%H' ,
3
4
name : 'commit hash' ,
4
5
fullDescription : 'commit hash' ,
5
6
description : '' ,
@@ -38,7 +39,7 @@ exports.fields = [ { code: '%H',
38
39
name : 'author name' ,
39
40
fullDescription : 'author name (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
40
41
description : ' (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
41
- identifier : 'author_name_(respecting_.mailmap_see_git-shortlog[1]_or_git-blame[1]) ' } ,
42
+ identifier : 'author_name_mailmap ' } ,
42
43
{ code : '%ae' ,
43
44
name : 'author email' ,
44
45
fullDescription : 'author email' ,
@@ -48,37 +49,37 @@ exports.fields = [ { code: '%H',
48
49
name : 'author email' ,
49
50
fullDescription : 'author email (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
50
51
description : ' (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
51
- identifier : 'author_email_(respecting_.mailmap_see_git-shortlog[1]_or_git-blame[1]) ' } ,
52
- { code : '%ad' ,
53
- name : 'author date' ,
54
- fullDescription : 'author date (format respects --date= option)' ,
55
- description : ' (format respects --date= option)' ,
56
- identifier : 'author_date_(format_respects_--date=_option)' } ,
57
- { code : '%aD' ,
58
- name : 'author date' ,
59
- fullDescription : 'author date, RFC2822 style' ,
60
- description : ', RFC2822 style' ,
61
- identifier : 'author_date_RFC2822_style' } ,
52
+ identifier : 'author_email_mailmap ' } ,
53
+ // { code: '%ad',
54
+ // name: 'author date',
55
+ // fullDescription: 'author date (format respects --date= option)',
56
+ // description: ' (format respects --date= option)',
57
+ // identifier: 'author_date_(format_respects_--date=_option)' },
58
+ // { code: '%aD',
59
+ // name: 'author date',
60
+ // fullDescription: 'author date, RFC2822 style',
61
+ // description: ', RFC2822 style',
62
+ // identifier: 'author_date_RFC2822_style' },
62
63
{ code : '%ar' ,
63
64
name : 'author date' ,
64
65
fullDescription : 'author date, relative' ,
65
66
description : ', relative' ,
66
67
identifier : 'author_date_relative' } ,
67
- { code : '%at' ,
68
- name : 'author date' ,
69
- fullDescription : 'author date, UNIX timestamp' ,
70
- description : ', UNIX timestamp' ,
71
- identifier : 'author_date_UNIX_timestamp' } ,
72
- { code : '%ai' ,
73
- name : 'author date' ,
74
- fullDescription : 'author date, ISO 8601-like format' ,
75
- description : ', ISO 8601-like format' ,
76
- identifier : 'author_date_ISO_8601-like_format' } ,
68
+ // { code: '%at',
69
+ // name: 'author date',
70
+ // fullDescription: 'author date, UNIX timestamp',
71
+ // description: ', UNIX timestamp',
72
+ // identifier: 'author_date_UNIX_timestamp' },
73
+ // { code: '%ai',
74
+ // name: 'author date',
75
+ // fullDescription: 'author date, ISO 8601-like format',
76
+ // description: ', ISO 8601-like format',
77
+ // identifier: 'author_date_ISO_8601-like_format' },
77
78
{ code : '%aI' ,
78
79
name : 'author date' ,
79
80
fullDescription : 'author date, strict ISO 8601 format' ,
80
81
description : ', strict ISO 8601 format' ,
81
- identifier : 'author_date_strict_ISO_8601_format ' } ,
82
+ identifier : 'author_date ' } ,
82
83
{ code : '%cn' ,
83
84
name : 'committer name' ,
84
85
fullDescription : 'committer name' ,
@@ -88,7 +89,7 @@ exports.fields = [ { code: '%H',
88
89
name : 'committer name' ,
89
90
fullDescription : 'committer name (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
90
91
description : ' (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
91
- identifier : 'committer_name_(respecting_.mailmap_see_git-shortlog[1]_or_git-blame[1]) ' } ,
92
+ identifier : 'committer_name_mailmap ' } ,
92
93
{ code : '%ce' ,
93
94
name : 'committer email' ,
94
95
fullDescription : 'committer email' ,
@@ -98,47 +99,47 @@ exports.fields = [ { code: '%H',
98
99
name : 'committer email' ,
99
100
fullDescription : 'committer email (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
100
101
description : ' (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
101
- identifier : 'committer_email_(respecting_.mailmap_see_git-shortlog[1]_or_git-blame[1]) ' } ,
102
- { code : '%cd' ,
103
- name : 'committer date' ,
104
- fullDescription : 'committer date (format respects --date= option)' ,
105
- description : ' (format respects --date= option)' ,
106
- identifier : 'committer_date_(format_respects_--date=_option)' } ,
107
- { code : '%cD' ,
108
- name : 'committer date' ,
109
- fullDescription : 'committer date, RFC2822 style' ,
110
- description : ', RFC2822 style' ,
111
- identifier : 'committer_date_RFC2822_style' } ,
102
+ identifier : 'committer_email_mailmap ' } ,
103
+ // { code: '%cd',
104
+ // name: 'committer date',
105
+ // fullDescription: 'committer date (format respects --date= option)',
106
+ // description: ' (format respects --date= option)',
107
+ // identifier: 'committer_date_(format_respects_--date=_option)' },
108
+ // { code: '%cD',
109
+ // name: 'committer date',
110
+ // fullDescription: 'committer date, RFC2822 style',
111
+ // description: ', RFC2822 style',
112
+ // identifier: 'committer_date_RFC2822_style' },
112
113
{ code : '%cr' ,
113
114
name : 'committer date' ,
114
115
fullDescription : 'committer date, relative' ,
115
116
description : ', relative' ,
116
117
identifier : 'committer_date_relative' } ,
117
- { code : '%ct' ,
118
- name : 'committer date' ,
119
- fullDescription : 'committer date, UNIX timestamp' ,
120
- description : ', UNIX timestamp' ,
121
- identifier : 'committer_date_UNIX_timestamp' } ,
122
- { code : '%ci' ,
123
- name : 'committer date' ,
124
- fullDescription : 'committer date, ISO 8601-like format' ,
125
- description : ', ISO 8601-like format' ,
126
- identifier : 'committer_date_ISO_8601-like_format' } ,
118
+ // { code: '%ct',
119
+ // name: 'committer date',
120
+ // fullDescription: 'committer date, UNIX timestamp',
121
+ // description: ', UNIX timestamp',
122
+ // identifier: 'committer_date_UNIX_timestamp' },
123
+ // { code: '%ci',
124
+ // name: 'committer date',
125
+ // fullDescription: 'committer date, ISO 8601-like format',
126
+ // description: ', ISO 8601-like format',
127
+ // identifier: 'committer_date_ISO_8601-like_format' },
127
128
{ code : '%cI' ,
128
129
name : 'committer date' ,
129
130
fullDescription : 'committer date, strict ISO 8601 format' ,
130
131
description : ', strict ISO 8601 format' ,
131
- identifier : 'committer_date_strict_ISO_8601_format ' } ,
132
- { code : '%d' ,
133
- name : 'ref names' ,
134
- fullDescription : 'ref names, like the --decorate option of git-log[1]' ,
135
- description : ', like the --decorate option of git-log[1]' ,
136
- identifier : 'ref_names' } ,
132
+ identifier : 'committer_date ' } ,
133
+ // { code: '%d',
134
+ // name: 'ref names',
135
+ // fullDescription: 'ref names, like the --decorate option of git-log[1]',
136
+ // description: ', like the --decorate option of git-log[1]',
137
+ // identifier: 'ref_names' },
137
138
{ code : '%D' ,
138
139
name : 'ref names without the "' ,
139
140
fullDescription : 'ref names without the " (", ")" wrapping.' ,
140
141
description : ' (", ")" wrapping.' ,
141
- identifier : 'ref_names_without_the_" ' } ,
142
+ identifier : 'ref_names ' } ,
142
143
{ code : '%e' ,
143
144
name : 'encoding' ,
144
145
fullDescription : 'encoding' ,
@@ -153,7 +154,7 @@ exports.fields = [ { code: '%H',
153
154
name : 'sanitized subject line' ,
154
155
fullDescription : 'sanitized subject line, suitable for a filename' ,
155
156
description : ', suitable for a filename' ,
156
- identifier : 'sanitized_subject_line ' } ,
157
+ identifier : 'sanitized_subject ' } ,
157
158
{ code : '%b' ,
158
159
name : 'body' ,
159
160
fullDescription : 'body' ,
@@ -173,22 +174,22 @@ exports.fields = [ { code: '%H',
173
174
name : 'raw verification message from GPG for a signed commit' ,
174
175
fullDescription : 'raw verification message from GPG for a signed commit' ,
175
176
description : '' ,
176
- identifier : 'raw_verification_message_from_GPG_for_a_signed_commit ' } ,
177
+ identifier : 'raw_GPG_verification_message ' } ,
177
178
{ code : '%G?' ,
178
179
name : 'show "G" for a good' ,
179
180
fullDescription : 'show "G" for a good (valid) signature, "B" for a bad signature, "U" for a good signature with unknown validity, "X" for a good signature that has expired, "Y" for a good signature made by an expired key, "R" for a good signature made by a revoked key, "E" if the signature cannot be checked (e.g. missing key) and "N" for no signature' ,
180
181
description : ' (valid) signature, "B" for a bad signature, "U" for a good signature with unknown validity, "X" for a good signature that has expired, "Y" for a good signature made by an expired key, "R" for a good signature made by a revoked key, "E" if the signature cannot be checked (e.g. missing key) and "N" for no signature' ,
181
- identifier : 'show_"G"_for_a_good ' } ,
182
+ identifier : 'signature_validity ' } ,
182
183
{ code : '%GS' ,
183
184
name : 'show the name of the signer for a signed commit' ,
184
185
fullDescription : 'show the name of the signer for a signed commit' ,
185
186
description : '' ,
186
- identifier : 'show_the_name_of_the_signer_for_a_signed_commit ' } ,
187
+ identifier : 'signer_name ' } ,
187
188
{ code : '%GK' ,
188
189
name : 'show the key used to sign a signed commit' ,
189
190
fullDescription : 'show the key used to sign a signed commit' ,
190
191
description : '' ,
191
- identifier : 'show_the_key_used_to_sign_a_signed_commit ' } ,
192
+ identifier : 'key ' } ,
192
193
{ code : '%gD' ,
193
194
name : 'reflog selector' ,
194
195
fullDescription : 'reflog selector, e.g., refs/stash@{1} or refs/stash@{2 minutes ago}; the format follows the rules described for the -g option. The portion before the @ is the refname as given on the command line (so git log -g refs/heads/master would yield refs/heads/master@{0}).' ,
@@ -208,7 +209,7 @@ exports.fields = [ { code: '%H',
208
209
name : 'reflog identity name' ,
209
210
fullDescription : 'reflog identity name (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
210
211
description : ' (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
211
- identifier : 'reflog_identity_name_(respecting_.mailmap_see_git-shortlog[1]_or_git-blame[1]) ' } ,
212
+ identifier : 'reflog_identity_name_mailmap ' } ,
212
213
{ code : '%ge' ,
213
214
name : 'reflog identity email' ,
214
215
fullDescription : 'reflog identity email' ,
@@ -218,9 +219,13 @@ exports.fields = [ { code: '%H',
218
219
name : 'reflog identity email' ,
219
220
fullDescription : 'reflog identity email (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
220
221
description : ' (respecting .mailmap, see git-shortlog[1] or git-blame[1])' ,
221
- identifier : 'reflog_identity_email_(respecting_.mailmap_see_git-shortlog[1]_or_git-blame[1]) ' } ,
222
+ identifier : 'reflog_identity_email_mailmap ' } ,
222
223
{ code : '%gs' ,
223
224
name : 'reflog subject' ,
224
225
fullDescription : 'reflog subject' ,
225
226
description : '' ,
226
- identifier : 'reflog_subject' } ] ;
227
+ identifier : 'reflog_subject' } ] ;
228
+
229
+ const formatString = exports . formatString = fields . map ( field =>
230
+ `${ field . code } %x00`
231
+ ) . join ( '' ) ;
0 commit comments