-
-
Notifications
You must be signed in to change notification settings - Fork 137
/
GitSavvy.sublime-settings
executable file
·379 lines (316 loc) · 11.8 KB
/
GitSavvy.sublime-settings
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
{
/*
Change this to `false` if you don't wish to be prompted when
discarding files.
*/
"prompt_before_destructive_action": true,
/*
Uncomment the setting below to explicitly set which git binary
to use. An empty string will search PATH for "git". The setting may
be a direct string to a git binary, e.g.:
"git_path": "/usr/bin/git",
Or it may be a dictionary keyed off what sublime.platform() returns,
so it may be customized on a per-platform basis. e.g.:
"git_path": {
"default": "",
"windows": "C:/Program Files/Git/cmd/git.exe"
},
*/
"git_path": "",
/*
Set custom environment variables for git command execution.
Expanding by environment variables and project variables also works. e.g.:
"PATH": "${project_path}/venv/bin:${PATH}"
*/
"env": {
},
/*
Change this to `true` when doing dev work on GitSavvy.
*/
"dev_mode": false,
/*
Enter your github API key in the field below. To interact with
a GitHub Enterprise instance, add a field with the FQDN as the key
and the API key as the value.
*/
"api_tokens": {
// "github.com": "ADD YOUR GITHUB TOKEN HERE"
// "gitlab.com": "ADD YOUR GITLAB TOKEN HERE"
},
/*
Only supported on GitHub.
When creating a fork, do only copy the main branch. Especially do
*not* copy the tags from the original repo to your repo.
Instead of changing the default, you can also add a command, for
example to your `User.sublime-commands` file, e.g.:
{
"caption": "git: create fork (non-sparse)",
"command": "gs_github_create_fork",
"args": { "default_branch_only": false}
},
See: https://github.blog/changelog/2022-07-27-you-can-now-fork-a-repo-and-copy-only-the-default-branch/
*/
"sparse_fork": true,
/*
maximum number of items per page when requesting from github
*/
"github_per_page_max" : 100,
/*
maximum number of items per page when requesting from gitlab
*/
"gitlab_per_page_max" : 100,
/*
Change this to "full" to display a full diff for the current commit
when writing a commit message.
Change this to "stat" to display a diff stat for the current commit
when writing a commit message.
Change this to `false` to disable.
*/
"show_commit_diff": "full",
/*
Change this to `false` to not scroll to the first hunk automatically when
you open the inline-diff view from the status dashboard.
*/
"inline_diff_auto_scroll": true,
"colors": {
"log_graph": {
"commit_dot_foreground": "#9911",
"commit_dot_background": "#991",
"path_foreground": "#991",
"path_background": "#99991109",
"commit_dot_above_foreground": "#f91d",
"commit_dot_above_background": "#99991109",
"path_above_foreground": "#19d",
"path_above_background": "#99991109",
"matching_commit_foreground": "#1991",
"matching_commit_background": "#199"
}
},
/*
Change this to `true` when you would like inline diff to
ignore EOL whitespace changes.
See details in https://github.com/timbrel/GitSavvy/issues/177
*/
"inline_diff_ignore_eol_whitespaces": false,
/*
Add entries to this array (e.g. "pull" or "push") if you'd like the
output of these Git commands to always be shown in a panel.
*/
"show_panel_for": [],
/*
https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project#Commit-Guidelines
Add a distinct style guide for the commit messages:
First line should be max 50 characters
Second line should be empty
Any subsequent lines should be max 80 characters
It will use 'invalid.deprecated.line-too-long.git-commit' scope by default.
The warning is will be outlined instead of fully marked
*/
"pedantic_commit": true,
"pedantic_commit_ruler": true,
"pedantic_commit_first_line_length": 50,
"pedantic_commit_message_line_length": 72,
"pedantic_commit_warning_length": 20,
/*
Change this to `false` to suppress Git status in ST3 status bar.
*/
"git_status_in_status_bar": true,
/*
When entering a tag message, this will be used if the message is empty.
The replacement value "{tag_name}" is optional, but recommended.
*/
"default_tag_message": "Tag {tag_name}",
/*
Ask for a tag message to annotate the tag only if the tag looks like
a version, e.g. "v2.31.2" or "2022.11.23". All other tags are considered
private and don't need to get annotated as we never push them.
Set to `false` if you always want to get asked for a tag message.
*/
"only_ask_to_annotate_versions": true,
/*
The filename for extra customized info to be displayed after the default
COMMIT_HELP_TEXT, such as commit message rules/tips/conventions.
Place this file at the root of the repo, and it should be committed to the
repo as well.
The file name defaults to `.commit_help`.
If this file is not presented, the functionality is totally ignored.
*/
"commit_help_extra_file": ".commit_help",
/*
For each command specified, always include the command line flags
indicated in the global_flags option AFTER the command.
*/
"global_flags": {
// --no-columns is not supported in Git versions <1.7.11. If Git is configured
// to use columns globally, --no-columns should be added here.
// "branch": ["--no-columns"]
//
// or, configure a GPG key to sign commits with a given key
// "commit": ["-S", "--gpg-sign=<key-id>"]
},
/*
For each command specified, always include the command line flags
indicated in the global_flags option BEFORE the command.
*/
"global_pre_flags": {
// for example, override settings via the "-c" option, e.g
// the following configures a gpg.program no-tty wrapper script
// "commit": ["-c", "gpg.program=./scripts/stgpg.sh"]
// and configure every commit to be signed with your key
// "commit": ["-c", "commit.gpgsign=true"]
},
/*
Sort branches by recency.
Change this to `true` to sort branches by "committerdate".
Change this to `false` to sort branches by their name.
*/
"sort_by_recent_in_branch_dashboard": false,
/*
Group branches by their distance to HEAD. Requires git 2.41.0.
*/
"group_by_distance_to_head_in_branch_dashboard": true,
/*
Set this to `true` to display remotes in the branch dashboard by default.
*/
"show_remotes_in_branch_dashboard": false,
/*
Set this to `true` to display remotes in the tags dashboard by default.
*/
"show_remotes_in_tags_dashboard": false,
/*
Limit the number of tags listed in the tags dashboard.
*/
"max_items_in_tags_dashboard": null,
/*
When set to `true`, GitSavvy will automatically display more info about the
current commit in a output panel.
*/
"log_show_more_commit_info": true,
/*
Diffstat look like
core/commands/blame.py | 13 +++++--------
core/commands/log.py | 9 +++------
core/git_mixins/history.py | 8 ++------
3 files changed, 10 insertions(+), 20 deletions(-)
Set to `false` if don't want to show this when view a commit or diff.
*/
"show_diffstat": true,
/*
When set to `true`, GitSavvy will automatically display more info about the
current commit in an output panel. When set to `false`, this function must
be invoked manually.
*/
"graph_show_more_commit_info": true,
/*
When set to `true,`, GitSavvy will display the full diff of the current
commit in the output panel.
*/
"show_full_commit_info": true,
/*
When set to `true`, GitSavvy will follow file renames when running git log/graph
*/
"log_follow_rename": false,
/*
When set to `true`, GitSavvy will follow file renames in blame view
*/
"blame_follow_rename": false,
/*
Set it to "file", "commit" or "all_commits" to specify the default detection
method for the blame view.
*/
"blame_detect_move_or_copy_within": "file",
/*
When set to `true`, GitSavvy will prompt for confirmation when closing
the commit message view. Ignored when "commit_on_close" is true.
*/
"prompt_on_abort_commit": true,
/*
When set to `true`, GitSavvy will display git-flow integration commands.
*/
"show_git_flow_commands": false,
/*
The default base for the rebase dashboard.
*/
"rebase_default_base_ref": "",
/*
When set to `true`, rebase dashboard uses preserve-merges mode when opened.
*/
"rebase_preserve_merges": false,
/*
When set to `true`, GitSavvy will prompt for confirmation before actually
performing a `git push --force` operation.
*/
"confirm_force_push": true,
/*
When set to `true`, closing the commit message window via keyboard will result
in a commit action being taken, except in cases where the message is empty.
The same is also true for amending commits.
*/
"commit_on_close": false,
/*
This encoding will be used whenever Git's output cannot be correctly parsed
as UTF-8. Modify this value if you regularly with files and Git history
with a different text encoding.
Example:
"fallback_encoding": "gbk"
*/
"fallback_encoding": "windows-1252",
/*
This setting should only be set to true in the following conditions:
- you have installed the "Codecs33" package from Package Control
- you are running Linux or OS X
- you would like to use non-supported codecs like "gbk" for the
`fallback_encoding` value
*/
"load_additional_codecs": false,
/*
GitSavvy allows you to press `Tab` to cycle from one dashboard interface
to the next. This setting defines the order of that cycle. The following
are valid entries, and can be included in your preferred order:
status
branch
rebase
tags
graph
*/
"tab_order": [
"status",
"branch",
"tags",
"graph"
],
/*
Set this value to a valid git reset mode (e.g. --hard, --soft) to use
it as the preselected default.
*/
"use_reset_mode": "--mixed",
/*
When set to `true`, you can navigate the dashboards by using arrow keys.
*/
"arrow_keys_navigation": false,
/*
When set to `true`, GitSavvy will become Vintagoues friendly.
You might need to restart Sublime in order to get this working.
*/
"vintageous_friendly": false,
/*
When set to `true`, all views will start in INSERT mode.
Ignored if `vintageous_friendly` is `false`.
*/
"vintageous_enter_insert_mode": false,
/*
When set to `true`, all views will hide their help menu when rendering.
You can still toggle the help menu by pressing `?`.
*/
"hide_help_menu": false,
/*
When set to `true`, no views will receive the prompt asking to initialize
Git in the current view's directory when not found.
*/
"disable_git_init_prompt": false,
/*
Disable adding any entries to the context menu available when right-clicking
in any view.
*/
"disable_context_menus": false
}