summaryrefslogtreecommitdiffstats
path: root/cmd/grv/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/grv/config.go')
-rw-r--r--cmd/grv/config.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/grv/config.go b/cmd/grv/config.go
index b9702ba..577e106 100644
--- a/cmd/grv/config.go
+++ b/cmd/grv/config.go
@@ -32,6 +32,7 @@ const (
cfCommitGraphDefaultValue = false
cfConfirmCheckoutDefaultValue = true
cfPromptHistorySizeDefaultValue = 1000
+ cfGitBinaryFilePathDefaultValue = ""
cfAllView = "All"
cfMainView = "MainView"
@@ -68,6 +69,8 @@ const (
CfConfirmCheckout ConfigVariable = "confirm-checkout"
// CfPromptHistorySize stores the maximum number of prompt entries retained
CfPromptHistorySize ConfigVariable = "prompt-history-size"
+ // CfGitBinaryFilePath stores the file path to the git binary
+ CfGitBinaryFilePath ConfigVariable = "git-binary-file-path"
)
var systemColorValues = map[string]SystemColorValue{
@@ -317,6 +320,10 @@ func NewConfiguration(keyBindings KeyBindings, channels Channels) *Configuration
validator: promptHistorySizeValidator{},
description: "Maximum number of prompt entries retained",
},
+ CfGitBinaryFilePath: {
+ defaultValue: cfGitBinaryFilePathDefaultValue,
+ description: "File path to git binary. Required only when git binary is not in $PATH",
+ },
}
for _, configVariable := range config.variables {