summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de791f1)
raw | patch | inline | side by side (parent: de791f1)
author | Petr Baudis <pasky@suse.cz> | |
Mon, 24 Apr 2006 22:59:30 +0000 (00:59 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 25 Apr 2006 05:29:36 +0000 (22:29 -0700) |
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>
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>
Documentation/git-var.txt | patch | blob | history | |
git-cvsserver.perl | patch | blob | history |
index 379571eef0e3f7ee79f7b99c8e85845f5248e79e..a5b1a0dbab5e55a1c1fc2b0f8b35e234832808bb 100644 (file)
-l::
Cause the logical variables to be listed. In addition, all the
variables of the git configuration file .git/config are listed
- as well.
+ as well. (However, the configuration variables listing functionality
+ is deprecated in favor of `git-repo-config -l`.)
EXAMPLE
--------
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 7d3f78e375066c27f0881a92c23fda8d5c8d6dff..0b37d26e07743d2303f4bf2ce5f38e7698f9bc2f 100755 (executable)
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
return 0;
}
- my @gitvars = `git-var -l`;
+ my @gitvars = `git-repo-config -l`;
if ($?) {
- print "E problems executing git-var on the server -- this is not a git repository or the PATH is not set correcly.\n";
+ print "E problems executing git-repo-config on the server -- this is not a git repository or the PATH is not set correcly.\n";
print "E \n";
- print "error 1 - problem executing git-var\n";
+ print "error 1 - problem executing git-repo-config\n";
return 0;
}
foreach my $line ( @gitvars )