-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit.ini
190 lines (167 loc) · 6.8 KB
/
git.ini
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
#
# Git Package configuration file
#
[main]
# Plugin's main configuration section.
# Path to git executable which is use to execute git commands
#
# Defaults to "git", meaning to the git executable in the %PATH%
# Examples:
# git_exe = C:\Git\bin\git.exe
#
# Default: git
#git_exe = git
# The [scan_path/*] sections
#
# In these sections you can define paths to be scanned for git repositories
# which will be listed in keypirinha
# Each [scan_path/NAME] section has the following settings to determine where
# to scan for git repositories
# * paths: (required) multi-line setting of directory paths to recursively
# scan. Paths can also be separated by ";" (support for
# environment path variables)
# * depth: (optional) integer that controls the maximum scan depth for each
# path.
# * '-1' means there is no limit to the scan depth, so the
# all sub directories of the paths are recursively scanned
# * '0' means only the direct content of the directory is
# scanned
# * A positive integer specifies the limit for depth level
# in the filesystem hierarchy. If the limit is reached the
# scanning won't dive deeper in the sub directories
# Defaults to -1
# * excludes: (optional) multi-line setting of glob patterns to exclude. Git
# repositories that match the pattern will not be listed in keypirinha.
#
# Examples:
#
# Scan some paths
# [scan_path/ProgammingStuff]
# paths =
# C:\dev
# D:\dev
# depth = 3
#
# To scan the entire %GOPATH% enviroment variable but exclude everything from
# github.com
# [scan_path/MyGolangStuff]
# paths =
# ${env:GOPATH}\src
# excludes =
# **\src\github.com\**
# The [cmd/*] sections
#
# * Each [cmd/NAME] represents a command that is executed on a single git
# repository
# * If you need to include a brace character in the literal text of a settings
# with placeholder support, it can be escaped by doubling: {{ and }}
# * The following settings can be set in each section:
# * label: (required) name of the command, displayed and searchable in
# keypirinha
# * cmd: (required) name or path of the executable to call
# * args: (optional) command line parameters to call the executable with.
# Defaults to '"{repo_path}"'
# Supported placeholders:
# * {repo_path}: Path to the currently selected git
# repository
# * cwd: (optional) working directory to call the executable in.
# Supported placeholders:
# * {repo_path}: Path to the currently selected git
# repository
# * internal: (optional) boolean to decide if the executable called
# internally ('yes') or externally ('no').
# Internally means that STDOUT and STDERR are
# redirected to the keypirinha console and there is
# no visible window (it's meant for git command line
# calls)
# Defaults to 'no'
[cmd/Explorer]
label = Open Explorer
cmd = explorer.exe
[cmd/Fork]
label = Open in Fork
cmd = ${var:KNOWNFOLDER_LOCALAPPDATA}\Fork\Fork.exe
[cmd/GitExtensions]
label = Open in GitExtensions
cmd = ${var:KNOWNFOLDER_PROGRAMFILESX86}\GitExtensions\GitExtensions.exe
args = browse "{repo_path}"
[cmd/GitAhead]
label = Open in GitAhead
cmd = ${var:KNOWNFOLDER_PROGRAMFILES}\GitAhead\GitAhead.exe
[cmd/gitg]
label = Open in gitg
cmd = ${var:KNOWNFOLDER_PROGRAMFILES}\gitg\bin\gitg.exe
[cmd/SublimeMerge]
label = Open in Sublime Merge
cmd = ${var:KNOWNFOLDER_PROGRAMFILES}\Sublime Merge\sublime_merge.exe
[cmd/VSCode]
label = Open in VSCode
cmd = ${var:KNOWNFOLDER_PROGRAMFILES}\Microsoft VS Code\Code.exe
[cmd/Git Fetch]
label = Fetch all remotes
cmd = {git_exe}
args = fetch --all
cwd = {repo_path}
[cmd/Git GC]
label = Run garbage collection
cmd = {git_exe}
args = gc
cwd = {repo_path}
# The [cmd_all/*] sections
#
# * Each [cmd_all/NAME] represents a command that is executed on all git
# repositories
# * It works a lot like the [cmd/*] section, the difference is, that the
# working directory is always set to the git repository path
# * If you need to include a brace character in the literal text of a settings
# with placeholder support, it can be escaped by doubling: {{ and }}
# * The following settings can be set in each section:
# * label: (required) name of the command, displayed and searchable in
# keypirinha
# * cmd: (required) name or path of the executable to call
# Supported placeholders:
# * {git_exe}: Path to git executable configured above
# * args: (optional) command line parameters to call the executable with.
# Empty per default
# Supported placeholders:
# * {repo_path}: Path to the git repository
# * internal: (optional) boolean to decide if the executable called
# internally ('yes') or externally ('no').
# Internally means that STDOUT and STDERR are
# redirected to the keypirinha console and there is
# no visible window (it's meant for git command line
# calls)
# Defaults to 'no'
[cmd_all/Git Fetch All]
label = Git: Fetch all remotes on all repositories
cmd = {git_exe}
args = fetch --all
[cmd_all/Git GC Auto]
label = Git: Run automatic garbage collection on all Git Repositories
cmd = {git_exe}
args = gc --auto
internal = yes
[cmd_all/Git Status]
label = Git Status on all repositories
cmd = {git_exe}
args = status
internal = yes
# The [file/*] sections
#
# * Each [file/NAME] searches for special files in a git repository to open
# directly from keypirinha
# * A good example are Visual Studio solution files "*.sln", that are typically
# in the root of a git repository and can be search for and then opened
# directly from keypirinha
# * Each section has one single setting:
# * pattern: (required) multi-line setting with glob search patterns
# ('**' for recursive search in subdirectories is
# supported, but discouraged for performance reasons)
[file/VS]
pattern = *.sln
[file/Buildscript]
pattern =
build*.cmd
build*.bat
make*.cmd
make*.bat