summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorYuki Osaki <yuki.osaki7@gmail.com>2020-11-27 16:07:14 +0900
committerJesse Duffield <jessedduffield@gmail.com>2020-11-28 19:19:47 +1100
commit4928d1d490becaac9464ac1d6217ab60382791cc (patch)
tree4a14a398b633d046bd8e5570efab638093078e3b /pkg/config
parent9c52eb9d6f2d2eadd30852bba49b148e785b06d3 (diff)
Visualize the commits for all branches
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/user_config.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go
index 6fc28f101..ffdd93a8d 100644
--- a/pkg/config/user_config.go
+++ b/pkg/config/user_config.go
@@ -51,6 +51,7 @@ type GitConfig struct {
SkipHookPrefix string `yaml:"skipHookPrefix"`
AutoFetch bool `yaml:"autoFetch"`
BranchLogCmd string `yaml:"branchLogCmd"`
+ AllBranchesLogCmd string `yaml:"allBranchesLogCmd"`
OverrideGpg bool `yaml:"overrideGpg"`
DisableForcePushing bool `yaml:"disableForcePushing"`
CommitPrefixes map[string]CommitPrefixConfig `yaml:"commitPrefixes"`
@@ -151,8 +152,9 @@ type KeybindingUniversalConfig struct {
}
type KeybindingStatusConfig struct {
- CheckForUpdate string `yaml:"checkForUpdate"`
- RecentRepos string `yaml:"recentRepos"`
+ CheckForUpdate string `yaml:"checkForUpdate"`
+ RecentRepos string `yaml:"recentRepos"`
+ AllBranchesLogGraph string `yaml:"allBranchesLogGraph"`
}
type KeybindingFilesConfig struct {
@@ -300,7 +302,7 @@ func GetDefaultConfig() *UserConfig {
SkipHookPrefix: "WIP",
AutoFetch: true,
BranchLogCmd: "git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium {{branchName}} --",
- OverrideGpg: false,
+ AllBranchesLogCmd: "git log --graph --all --color=always --abbrev-commit --decorate --date=relative --pretty=medium",
DisableForcePushing: false,
CommitPrefixes: map[string]CommitPrefixConfig(nil),
},
@@ -370,8 +372,9 @@ func GetDefaultConfig() *UserConfig {
AppendNewline: "<tab>",
},
Status: KeybindingStatusConfig{
- CheckForUpdate: "u",
- RecentRepos: "<enter>",
+ CheckForUpdate: "u",
+ RecentRepos: "<enter>",
+ AllBranchesLogGraph: "a",
},
Files: KeybindingFilesConfig{
CommitChanges: "c",