diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2009-11-12 00:57:36 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-13 21:16:30 +0100 |
commit | c27b39252ff713db414b8dbbfb263d0468031fab (patch) | |
tree | 1896a16e4411c4ee73848c4adc38e2fbbf369acc /var.c | |
parent | Do not use VISUAL editor on dumb terminals (diff) | |
download | git-c27b39252ff713db414b8dbbfb263d0468031fab.tar.xz git-c27b39252ff713db414b8dbbfb263d0468031fab.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |