i18n: factorize more 'incompatible options' messages
Find more incompatible options to factorize. When more than two options are mutually exclusive, print the ones which are actually on the command line. Signed-off-by: Jean-Noël Avila <jn.avila@free.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
5d01301f2b
commit
a699367bb8
@ -1978,8 +1978,9 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
|
||||
if (rev.show_notes)
|
||||
load_display_notes(&rev.notes_opt);
|
||||
|
||||
if (use_stdout + rev.diffopt.close_file + !!output_directory > 1)
|
||||
die(_("options '%s', '%s', and '%s' cannot be used together"), "--stdout", "--output", "--output-directory");
|
||||
die_for_incompatible_opt3(use_stdout, "--stdout",
|
||||
rev.diffopt.close_file, "--output",
|
||||
!!output_directory, "--output-directory");
|
||||
|
||||
if (use_stdout) {
|
||||
setup_pager();
|
||||
|
||||
Reference in New Issue
Block a user