summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 677fbff)
raw | patch | inline | side by side (parent: 677fbff)
author | Johannes Sixt <j6t@kdbg.org> | |
Thu, 23 Apr 2009 13:49:06 +0000 (15:49 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 24 Apr 2009 08:29:13 +0000 (01:29 -0700) |
If for some reason the config file contains a key without a subkey like
[man]
foo = bar
then even a plain
git help
produces an error message. With this patch such an entry is ignored.
Additionally, the warning about unknown sub-keys is removed. It could
become annoying if new sub-keys are introduced in the future, and then
the configuration is read by an old version of git that does not know
about it.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
[man]
foo = bar
then even a plain
git help
produces an error message. With this patch such an entry is ignored.
Additionally, the warning about unknown sub-keys is removed. It could
become annoying if new sub-keys are introduced in the future, and then
the configuration is read by an old version of git that does not know
about it.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-help.c | patch | blob | history |
diff --git a/builtin-help.c b/builtin-help.c
index 9b57a746185719eb43c962c4adb96283657692e9..e7fbe9af633d23fa55b14751190e6dd5d9e5d762 100644 (file)
--- a/builtin-help.c
+++ b/builtin-help.c
const char *subkey = strrchr(name, '.');
if (!subkey)
- return error("Config with no key for man viewer: %s", name);
+ return 0;
if (!strcmp(subkey, ".path")) {
if (!value)
return add_man_viewer_cmd(name, subkey - name, value);
}
- warning("'%s': unsupported man viewer sub key.", subkey);
return 0;
}