Git: Also show binary path in the settings

More similar to svn, cc, bzr, and Gives the user a chance to specify
something different. Plan is to make this also work with remote setups
[and possibly a per-device option, or automatism]

Change-Id: I18c1a90642c9cbe2ef9419103f3919c4a19122e5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2024-02-05 14:39:25 +01:00
parent 89896698fe
commit 324d0f7271

View File

@@ -30,10 +30,13 @@ GitSettings::GitSettings()
setAutoApply(false); setAutoApply(false);
setSettingsGroup("Git"); setSettingsGroup("Git");
path.setDisplayStyle(StringAspect::LineEditDisplay);
path.setLabelText(Tr::tr("Prepend to PATH:")); path.setLabelText(Tr::tr("Prepend to PATH:"));
path.setDisplayStyle(StringAspect::LineEditDisplay);
binaryPath.setLabelText(Tr::tr("Git Command"));
binaryPath.setDefaultValue("git"); binaryPath.setDefaultValue("git");
binaryPath.setExpectedKind(PathChooser::ExistingCommand);
binaryPath.setHistoryCompleter("Git.Command.History");
pullRebase.setSettingsKey("PullRebase"); pullRebase.setSettingsKey("PullRebase");
pullRebase.setLabelText(Tr::tr("Pull with rebase")); pullRebase.setLabelText(Tr::tr("Pull with rebase"));
@@ -121,8 +124,9 @@ GitSettings::GitSettings()
return Column { return Column {
Group { Group {
title(Tr::tr("Configuration")), title(Tr::tr("Configuration")),
Column { Form {
Row { path }, binaryPath, br,
path, br,
winSetHomeEnvironment, winSetHomeEnvironment,
} }
}, },