From 5dd06d38795b2f6d05f851b25c814732238f8df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Thu, 2 Jul 2009 00:02:38 +0200 Subject: grep: move context hunk mark handling into show_line() Move last_shown into struct grep_opt, to make it available in show_line(), and then make the function handle the printing of hunk marks for context lines in a central place. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- grep.h | 1 + 1 file changed, 1 insertion(+) (limited to 'grep.h') diff --git a/grep.h b/grep.h index 464e272edf..0883214a09 100644 --- a/grep.h +++ b/grep.h @@ -84,6 +84,7 @@ struct grep_opt { int regflags; unsigned pre_context; unsigned post_context; + unsigned last_shown; }; extern void append_grep_pattern(struct grep_opt *opt, const char *pat, const char *origin, int no, enum grep_pat_token t); -- cgit v1.2.3