We are comparing complete, formatted commit messages with patches. There are no function names here, so stop looking for them. Signed-off-by: Johannes Schindelin <johannes.schindelin@xxxxxx> --- builtin/branch-diff.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builtin/branch-diff.c b/builtin/branch-diff.c index 5b187890bdf..89d75c93115 100644 --- a/builtin/branch-diff.c +++ b/builtin/branch-diff.c @@ -11,6 +11,7 @@ #include "diffcore.h" #include "commit.h" #include "pretty.h" +#include "userdiff.h" static const char * const builtin_branch_diff_usage[] = { N_("git branch-diff [<options>] <old-base>..<old-tip> <new-base>..<new-tip>"), @@ -330,6 +331,10 @@ static struct strbuf *output_prefix_cb(struct diff_options *opt, void *data) return data; } +static struct userdiff_driver no_func_name = { + .funcname = { "$^", 0 } +}; + static struct diff_filespec *get_filespec(const char *name, const char *p) { struct diff_filespec *spec = alloc_filespec(name); @@ -339,6 +344,7 @@ static struct diff_filespec *get_filespec(const char *name, const char *p) spec->size = strlen(p); spec->should_munmap = 0; spec->is_stdin = 1; + spec->driver = &no_func_name; return spec; } -- 2.17.0.409.g71698f11835