diff-merges: new function diff_merges_suppress()
This function sets all the relevant flags to disabled state, so that no code that checks only one of them get it wrong. Then we call this new function everywhere where diff merges output suppression is needed. Signed-off-by: Sergey Organov <sorganov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
564a4fc847
commit
09322b1da9
@ -14,6 +14,7 @@
|
||||
#include "lockfile.h"
|
||||
#include "run-command.h"
|
||||
#include "diff.h"
|
||||
#include "diff-merges.h"
|
||||
#include "refs.h"
|
||||
#include "refspec.h"
|
||||
#include "commit.h"
|
||||
@ -400,7 +401,7 @@ static void squash_message(struct commit *commit, struct commit_list *remotehead
|
||||
printf(_("Squash commit -- not updating HEAD\n"));
|
||||
|
||||
repo_init_revisions(the_repository, &rev, NULL);
|
||||
rev.ignore_merges = 1;
|
||||
diff_merges_suppress(&rev);
|
||||
rev.commit_format = CMIT_FMT_MEDIUM;
|
||||
|
||||
commit->object.flags |= UNINTERESTING;
|
||||
|
||||
Reference in New Issue
Block a user