aboutsummaryrefslogtreecommitdiffstats
path: root/repository/config_git.go
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-11-01 22:40:21 +0100
committeramine <hilalyamine@gmail.com>2019-11-01 22:44:11 +0100
commit60c6bd360f164b8f955b21cd1d0bc0cca6e5cb51 (patch)
treef82d8638276ddffe244063c5deffb8b7c21cbcd6 /repository/config_git.go
parent618f896f667b272c1272b1289c8ff3f3310c3168 (diff)
downloadgit-bug-60c6bd360f164b8f955b21cd1d0bc0cca6e5cb51.tar.gz
bridge: use new repository configuration interface
commands/webui: use new repository configuration interface
Diffstat (limited to 'repository/config_git.go')
-rw-r--r--repository/config_git.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/repository/config_git.go b/repository/config_git.go
index 22666de7..eac882a2 100644
--- a/repository/config_git.go
+++ b/repository/config_git.go
@@ -29,7 +29,7 @@ func newGitConfig(repo *GitRepo, global bool) *gitConfig {
}
}
-// StoreConfig store a single key/value pair in the config of the repo
+// StoreString store a single key/value pair in the config of the repo
func (gc *gitConfig) StoreString(key string, value string) error {
_, err := gc.repo.runGitCommand("config", gc.localityFlag, "--replace-all", key, value)
return err
@@ -43,7 +43,7 @@ func (gc *gitConfig) StoreTimestamp(key string, value time.Time) error {
return gc.StoreString(key, strconv.Itoa(int(value.Unix())))
}
-// ReadConfigs read all key/value pair matching the key prefix
+// ReadAll read all key/value pair matching the key prefix
func (gc *gitConfig) ReadAll(keyPrefix string) (map[string]string, error) {
stdout, err := gc.repo.runGitCommand("config", gc.localityFlag, "--get-regexp", keyPrefix)