]> git.ipfire.org Git - thirdparty/git.git/blobdiff - grep.h
grep: add --max-count command line option
[thirdparty/git.git] / grep.h
diff --git a/grep.h b/grep.h
index c722d25ed9d272fd333162a64ba367bc19ff77da..bdcadce61b8027adc760cd6e7fc51aa4e94c3d06 100644 (file)
--- a/grep.h
+++ b/grep.h
@@ -171,6 +171,7 @@ struct grep_opt {
        int show_hunk_mark;
        int file_break;
        int heading;
+       int max_count;
        void *priv;
 
        void (*output)(struct grep_opt *opt, const void *data, size_t size);
@@ -181,6 +182,7 @@ struct grep_opt {
        .relative = 1, \
        .pathname = 1, \
        .max_depth = -1, \
+       .max_count = -1, \
        .pattern_type_option = GREP_PATTERN_TYPE_UNSPECIFIED, \
        .colors = { \
                [GREP_COLOR_CONTEXT] = "", \