summaryrefslogtreecommitdiff
path: root/var.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2009-11-11 23:57:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-13 20:16:30 (GMT)
commitc27b39252ff713db414b8dbbfb263d0468031fab (patch)
tree1896a16e4411c4ee73848c4adc38e2fbbf369acc /var.c
parentd33738d7d3ed42a956c74d0125eb2b3abda451b7 (diff)
downloadgit-c27b39252ff713db414b8dbbfb263d0468031fab.zip
git-c27b39252ff713db414b8dbbfb263d0468031fab.tar.gz
git-c27b39252ff713db414b8dbbfb263d0468031fab.tar.bz2
Suppress warnings from "git var -l"
For scripts using "git var -l" to read all logical variables at once, not all per-variable warnings will be relevant. So suppress them. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'var.c')
-rw-r--r--var.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/var.c b/var.c
index 125c0d1..dacbaab 100644
--- a/var.c
+++ b/var.c
@@ -22,7 +22,7 @@ static void list_vars(void)
{
struct git_var *ptr;
for (ptr = git_vars; ptr->read; ptr++)
- printf("%s=%s\n", ptr->name, ptr->read(IDENT_WARN_ON_NO_NAME));
+ printf("%s=%s\n", ptr->name, ptr->read(0));
}
static const char *read_var(const char *var)