Skip to content

Commit

Permalink
pretty format always use ref-filter logic
Browse files Browse the repository at this point in the history
Using pretty-lib.{c,h} instead on pretty.c
[This commit is only for testing purpose]

Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Mentored-by: Heba Waly <heba.waly@gmail.com>
Signed-off-by: Hariom Verma <hariom18599@gmail.com>
  • Loading branch information
harry-hov authored and Hariom Verma committed Oct 17, 2020
1 parent 5e6b8f6 commit 47b77e5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions log-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,10 +757,7 @@ void show_log(struct rev_info *opt)
if (opt->graph)
ctx.graph_width = graph_width(opt->graph);

if (opt->use_ref_filter)
ref_pretty_print_commit(&ctx, commit, &msgbuf);
else
pretty_print_commit(&ctx, commit, &msgbuf);
ref_pretty_print_commit(&ctx, commit, &msgbuf);

if (opt->add_signoff)
append_signoff(&msgbuf, 0, APPEND_SIGNOFF_DEDUP);
Expand All @@ -772,11 +769,6 @@ void show_log(struct rev_info *opt)
strbuf_addstr(&msgbuf, ctx.notes_message);
}

if (opt->show_log_size && !opt->use_ref_filter) {
fprintf(opt->diffopt.file, "log size %i\n", (int)msgbuf.len);
graph_show_oneline(opt->graph);
}

/*
* Set opt->missing_newline if msgbuf doesn't
* end in a newline (including if it is empty)
Expand Down

0 comments on commit 47b77e5

Please sign in to comment.