grep: factor out do_append_grep_pat()
commit2b3873ff34ff937dad729407da4308be6a5bcd66
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sun, 20 May 2012 14:32:54 +0000 (20 16:32 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 May 2012 22:12:25 +0000 (20 15:12 -0700)
tree951861c1b68f106e85f1337568ddca76b11c9a68
parentfc456751102ededf8405446e70c228836d390f81
grep: factor out do_append_grep_pat()

Add do_append_grep_pat() as a shared function for adding patterns to
the header pattern list and the general pattern list.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c