mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-19 12:12:42 +02:00
better documentation
This commit is contained in:
parent
036b53acf8
commit
29316a528a
@ -14,6 +14,7 @@ import (
|
|||||||
|
|
||||||
var cyclableViews = []string{"status", "files", "branches", "commits", "stash"}
|
var cyclableViews = []string{"status", "files", "branches", "commits", "stash"}
|
||||||
|
|
||||||
|
// models/views that we can refresh
|
||||||
const (
|
const (
|
||||||
COMMITS = iota
|
COMMITS = iota
|
||||||
BRANCHES
|
BRANCHES
|
||||||
@ -33,13 +34,13 @@ const (
|
|||||||
|
|
||||||
type refreshOptions struct {
|
type refreshOptions struct {
|
||||||
then func()
|
then func()
|
||||||
scope []int
|
scope []int // e.g. []int{COMMITS, BRANCHES}. Leave empty to refresh everything
|
||||||
mode int
|
mode int // one of SYNC (default), ASYNC, and BLOCK_UI
|
||||||
}
|
}
|
||||||
|
|
||||||
type innerRefreshOptions struct {
|
type innerRefreshOptions struct {
|
||||||
scopeMap map[int]bool
|
scopeMap map[int]bool
|
||||||
mode int
|
mode int // one of SYNC (default), ASYNC, and BLOCK_UI
|
||||||
}
|
}
|
||||||
|
|
||||||
func intArrToMap(arr []int) map[int]bool {
|
func intArrToMap(arr []int) map[int]bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user