]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Deprecate usage of git-var -l for getting config vars list
authorPetr Baudis <pasky@suse.cz>
Mon, 24 Apr 2006 22:59:30 +0000 (00:59 +0200)
committerJunio 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>
Documentation/git-var.txt
git-cvsserver.perl

index 379571eef0e3f7ee79f7b99c8e85845f5248e79e..a5b1a0dbab5e55a1c1fc2b0f8b35e234832808bb 100644 (file)
@@ -19,7 +19,8 @@ OPTIONS
 -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
 --------
index 7d3f78e375066c27f0881a92c23fda8d5c8d6dff..0b37d26e07743d2303f4bf2ce5f38e7698f9bc2f 100755 (executable)
@@ -171,11 +171,11 @@ sub req_Root
        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 )