grep: factor out create_grep_pat()
commitfc456751102ededf8405446e70c228836d390f81
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sun, 20 May 2012 14:32:39 +0000 (20 16:32 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 May 2012 22:12:22 +0000 (20 15:12 -0700)
tree680f3500138c259ac19b3d4d1cce85427415820c
parentf174a2583c9f42315b60205890fa67a79a1f1669
grep: factor out create_grep_pat()

Add create_grep_pat(), a shared helper for all grep pattern allocation
and initialization needs.

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