Commit 5c52dd3
committed
Add config value for skipping recent repositories prompt
The configuration key `notARepository` configures the action
to be taken when opening Lazygit outside of a git repo.
Possible values
- 'prompt': (default) ask whether to initialize a new repo or open in the most recent repo
- 'create': initialize a new repo
- 'skip': open most recent repo
- 'quit': exit Lazygit
With `notARepository: skip`, the most recent repository is selected,
but a "Recent repositories" prompt is still opened.
Proposed change:
- `notARepository: recent` opens the "Recent repositories" prompt
- `notARepository: skip` skips the modal1 parent ef6f96b commit 5c52dd3
3 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
0 commit comments