diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2009-07-02 00:06:34 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-07-01 19:16:49 -0700 |
commit | 2944e4e6145bdfcb1a8730d7da671786d72c86ed (patch) | |
tree | a0a293f3b48ec4a732eb4f1743f8cf6b15b041d1 /git-gui/macosx | |
parent | grep: handle pre context lines on demand (diff) | |
download | tgif-2944e4e6145bdfcb1a8730d7da671786d72c86ed.tar.xz |
grep: add option -p/--show-function
The new option -p instructs git grep to print the previous function
definition as a context line, similar to diff -p. Such context lines
are marked with an equal sign instead of a dash. This option
complements the existing context options -A, -B, -C.
Function definitions are detected using the same heuristic that diff
uses. User defined regular expressions are not supported, yet.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/macosx')
0 files changed, 0 insertions, 0 deletions