Deprecate usage of git-var -l for getting config vars list
This has been an unfortunate sideway in the git API evolution. We use git-repo-config for all the other .git/config interaction so let's also use git-repo-config -l for the variable listing. Signed-off-by: Petr Baudis <pasky@suse.cz>
Petr Baudis committed
Apr 25, 2006 at 00:59 UTC
e1cbc46d12a0524fd5e710cbfaf3f178fc3da504
2 files changed
+5
-4
Documentation/git-var.txt
+2
-1
@@ -19,7 +19,8 @@ OPTIONS
19
-l::
20
Cause the logical variables to be listed. In addition, all the
21
variables of the git configuration file .git/config are listed
22
- as well.
22
+ as well. (However, the configuration variables listing functionality
23
+ is deprecated in favor of `git-repo-config -l`.)
24
25
EXAMPLE
26
--------
git-cvsserver.perl
+3
-3
@@ -171,11 +171,11 @@ sub req_Root
171
return 0;
172
}
173
174
- my @gitvars = `git-var -l`;
174
+ my @gitvars = `git-repo-config -l`;
175
if ($?) {
176
- print "E problems executing git-var on the server -- this is not a git repository or the PATH is not set correcly.\n";
176
+ print "E problems executing git-repo-config on the server -- this is not a git repository or the PATH is not set correcly.\n";
177
print "E \n";
178
- print "error 1 - problem executing git-var\n";
178
+ print "error 1 - problem executing git-repo-config\n";
179
return 0;
180
}
181
foreach my $line ( @gitvars )