Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-02-09 03:53:36 +0300
committerShawn O. Pearce <spearce@spearce.org>2007-02-09 03:53:36 +0300
commitdf6287ecd78206095796512bca80e87cc5a5e33b (patch)
treeb6860b82376b67792b51e382451dbc8814442888 /git-gui.sh
parent24d2bf2f02c104b8402e2c19b383aecd1e2ccf17 (diff)
git-gui: Use git-config now over git-repo-config.
Now that core Git has "renamed" git-repo-config to git-config, we should do the same. I don't know how long core Git will keep the repo-config command, and since git-gui's userbase is so small and almost entirely on some flavor of 1.5.0-rc2 or later, where the rename has already taken place, it should be OK to rename now. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 6dcd64478e..ae22338be3 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -140,7 +140,7 @@ proc load_config {include_global} {
array unset global_config
if {$include_global} {
catch {
- set fd_rc [open "| git repo-config --global --list" r]
+ set fd_rc [open "| git config --global --list" r]
while {[gets $fd_rc line] >= 0} {
if {[regexp {^([^=]+)=(.*)$} $line line name value]} {
if {[is_many_config $name]} {
@@ -156,7 +156,7 @@ proc load_config {include_global} {
array unset repo_config
catch {
- set fd_rc [open "| git repo-config --list" r]
+ set fd_rc [open "| git config --list" r]
while {[gets $fd_rc line] >= 0} {
if {[regexp {^([^=]+)=(.*)$} $line line name value]} {
if {[is_many_config $name]} {
@@ -202,14 +202,14 @@ proc save_config {} {
set value $global_config_new($name)
if {$value ne $global_config($name)} {
if {$value eq $default_config($name)} {
- catch {exec git repo-config --global --unset $name}
+ catch {exec git config --global --unset $name}
} else {
regsub -all "\[{}\]" $value {"} value
- exec git repo-config --global $name $value
+ exec git config --global $name $value
}
set global_config($name) $value
if {$value eq $repo_config($name)} {
- catch {exec git repo-config --unset $name}
+ catch {exec git config --unset $name}
set repo_config($name) $value
}
}
@@ -219,10 +219,10 @@ proc save_config {} {
set value $repo_config_new($name)
if {$value ne $repo_config($name)} {
if {$value eq $global_config($name)} {
- catch {exec git repo-config --unset $name}
+ catch {exec git config --unset $name}
} else {
regsub -all "\[{}\]" $value {"} value
- exec git repo-config $name $value
+ exec git config $name $value
}
set repo_config($name) $value
}
@@ -4151,7 +4151,7 @@ proc do_quit {} {
set rc_geometry {}
}
if {$cfg_geometry ne $rc_geometry} {
- catch {exec git repo-config gui.geometry $cfg_geometry}
+ catch {exec git config gui.geometry $cfg_geometry}
}
}