checkout -b <name>: correctly detect existing branch
[gitweb.git] / log-tree.c
index d3ae969f608b50a469aa60b2e925558a6bb437e5..2e2be7c40f996949a69f597168b620976cf55b2f 100644 (file)
@@ -469,6 +469,12 @@ int log_tree_diff_flush(struct rev_info *opt)
                        int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
                        if ((pch & opt->diffopt.output_format) == pch)
                                printf("---");
+                       if (opt->diffopt.output_prefix) {
+                               struct strbuf *msg = NULL;
+                               msg = opt->diffopt.output_prefix(&opt->diffopt,
+                                       opt->diffopt.output_prefix_data);
+                               fwrite(msg->buf, msg->len, 1, stdout);
+                       }
                        putchar('\n');
                }
        }