mirror of
https://github.com/git/git.git
synced 2026-02-17 21:28:11 +00:00
Merge branch 'jc/maint-log-grep-all-match' (early part) into next
* 'jc/maint-log-grep-all-match' (early part): grep.c: mark private file-scope symbols as static
This commit is contained in:
6
grep.c
6
grep.c
@@ -3,6 +3,10 @@
|
||||
#include "userdiff.h"
|
||||
#include "xdiff-interface.h"
|
||||
|
||||
static int grep_source_load(struct grep_source *gs);
|
||||
static int grep_source_is_binary(struct grep_source *gs);
|
||||
|
||||
|
||||
static struct grep_pat *create_grep_pat(const char *pat, size_t patlen,
|
||||
const char *origin, int no,
|
||||
enum grep_pat_token t,
|
||||
@@ -403,7 +407,7 @@ static void dump_grep_expression_1(struct grep_expr *x, int in)
|
||||
}
|
||||
}
|
||||
|
||||
void dump_grep_expression(struct grep_opt *opt)
|
||||
static void dump_grep_expression(struct grep_opt *opt)
|
||||
{
|
||||
struct grep_expr *x = opt->pattern_expression;
|
||||
|
||||
|
||||
3
grep.h
3
grep.h
@@ -159,11 +159,10 @@ struct grep_source {
|
||||
|
||||
void grep_source_init(struct grep_source *gs, enum grep_source_type type,
|
||||
const char *name, const void *identifier);
|
||||
int grep_source_load(struct grep_source *gs);
|
||||
void grep_source_clear_data(struct grep_source *gs);
|
||||
void grep_source_clear(struct grep_source *gs);
|
||||
void grep_source_load_driver(struct grep_source *gs);
|
||||
int grep_source_is_binary(struct grep_source *gs);
|
||||
|
||||
|
||||
int grep_source(struct grep_opt *opt, struct grep_source *gs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user