diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2011-08-01 19:20:53 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-01 16:09:15 -0700 |
commit | ba8ea7496f2b95c49fccb72ed6b332afbd865e7b (patch) | |
tree | c52a2d2007a2e209813df918dede0b05bbd08be8 /t/t7601-merge-pull-config.sh | |
parent | Merge branch 'maint' (diff) | |
download | tgif-ba8ea7496f2b95c49fccb72ed6b332afbd865e7b.tar.xz |
grep: add option to show whole function as context
Add a new option, -W, to show the whole surrounding function of a match.
It uses the same regular expressions as -p and diff to find the beginning
of sections.
Currently it will not display comments in front of a function, but those
that are following one. Despite this shortcoming it is already useful,
e.g. to simply see a more complete applicable context or to extract whole
functions.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7601-merge-pull-config.sh')
0 files changed, 0 insertions, 0 deletions