Skip to content

Commit f99c0fe

Browse files
committed
diff: make diff_set_default_prefix() static
This is not something an external caller would want to call; it instead is an implementation detail of finalizing the effect other functions (like diff_set_mnemonic_prefix()) prepared into a diff_options structure to be used. Make it file-scope static to avoid exposing it to the outside world. Signed-off-by: Junio C Hamano <[email protected]>
1 parent f02a0c1 commit f99c0fe

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3444,7 +3444,7 @@ void diff_set_noprefix(struct diff_options *options)
34443444
options->a_prefix = options->b_prefix = "";
34453445
}
34463446

3447-
void diff_set_default_prefix(struct diff_options *options)
3447+
static void diff_set_default_prefix(struct diff_options *options)
34483448
{
34493449
options->a_prefix = diff_src_prefix ? diff_src_prefix : "a/";
34503450
options->b_prefix = diff_dst_prefix ? diff_dst_prefix : "b/";

diff.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ void diff_tree_combined_merge(const struct commit *commit, struct rev_info *rev)
498498

499499
void diff_set_mnemonic_prefix(struct diff_options *options, const char *a, const char *b);
500500
void diff_set_noprefix(struct diff_options *options);
501-
void diff_set_default_prefix(struct diff_options *options);
502501

503502
int diff_can_quit_early(struct diff_options *);
504503

0 commit comments

Comments
 (0)