Merge branch 'vr/help-per-platform'

* vr/help-per-platform:
  Restore use of 'help.format' configuration property in 'git help'
maint
Junio C Hamano 2012-06-22 11:07:28 -07:00
commit fd378070c8
1 changed files with 3 additions and 3 deletions

View File

@ -449,10 +449,10 @@ int cmd_help(int argc, const char **argv, const char *prefix)
setup_git_directory_gently(&nongit); setup_git_directory_gently(&nongit);
git_config(git_help_config, NULL); git_config(git_help_config, NULL);


if (parsed_help_format == HELP_FORMAT_NONE) if (parsed_help_format != HELP_FORMAT_NONE)
help_format = parse_help_format(DEFAULT_HELP_FORMAT);
else
help_format = parsed_help_format; help_format = parsed_help_format;
if (help_format == HELP_FORMAT_NONE)
help_format = parse_help_format(DEFAULT_HELP_FORMAT);


alias = alias_lookup(argv[0]); alias = alias_lookup(argv[0]);
if (alias && !is_git_command(argv[0])) { if (alias && !is_git_command(argv[0])) {