summaryrefslogtreecommitdiffstats
path: root/diff.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-10-10 23:22:29 +0200
committerJunio C Hamano <gitster@pobox.com>2024-10-10 23:22:30 +0200
commit3eb4cc451ed97123ff76e183a5be8a7dc164d1f6 (patch)
treee461fea00a0f4780a41b9baa13de7fd056f644f2 /diff.h
parentMerge branch 'ps/leakfixes-part-8' (diff)
parentdiff: store graph prefix buf in git_graph struct (diff)
downloadgit-3eb4cc451ed97123ff76e183a5be8a7dc164d1f6.tar.xz
git-3eb4cc451ed97123ff76e183a5be8a7dc164d1f6.zip
Merge branch 'jk/output-prefix-cleanup'
Code clean-up. * jk/output-prefix-cleanup: diff: store graph prefix buf in git_graph struct diff: return line_prefix directly when possible diff: return const char from output_prefix callback diff: drop line_prefix_length field line-log: use diff_line_prefix() instead of custom helper
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/diff.h b/diff.h
index 0cde3b34e2..5c8de79535 100644
--- a/diff.h
+++ b/diff.h
@@ -94,7 +94,7 @@ typedef void (*add_remove_fn_t)(struct diff_options *options,
typedef void (*diff_format_fn_t)(struct diff_queue_struct *q,
struct diff_options *options, void *data);
-typedef struct strbuf *(*diff_prefix_fn_t)(struct diff_options *opt, void *data);
+typedef const char *(*diff_prefix_fn_t)(struct diff_options *opt, void *data);
#define DIFF_FORMAT_RAW 0x0001
#define DIFF_FORMAT_DIFFSTAT 0x0002
@@ -274,7 +274,6 @@ struct diff_options {
const char *single_follow;
const char *a_prefix, *b_prefix;
const char *line_prefix;
- size_t line_prefix_length;
/**
* collection of boolean options that affects the operation, but some do