summaryrefslogtreecommitdiff
path: root/grep.h
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2009-07-02 00:02:38 +0200
committerJunio C Hamano <gitster@pobox.com>2009-07-01 19:16:45 -0700
commit5dd06d38795b2f6d05f851b25c814732238f8df1 (patch)
tree4195c0280afba075bf038227a8884b634f1ffbb9 /grep.h
parent8cfe5f1cd5dabc3a21bc792327747deefeff6dff (diff)
downloadgit-5dd06d38795b2f6d05f851b25c814732238f8df1.tar.gz
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 <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.h')
-rw-r--r--grep.h1
1 files changed, 1 insertions, 0 deletions
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);