From: Michał Kiedrowicz Date: Mon, 06 Jun 2011 12:26:17 GMT Subject: Re: [PATCH 3/3] grep: add --heading Message-ID: In-Reply-To: <4DEB9FB4.8020904@lsrfire.ath.cx> René Scharfe lsrfire.ath.cx> writes: > > This option is taken from ack (http://betterthangrep.com/). And now > git grep can dress up like it: > > $ git config alias.ack "grep --break --heading --line-number" > > $ git ack -e --heading > Documentation/git-grep.txt > 154:--heading:: > > t/t7810-grep.sh > 785:test_expect_success 'grep --heading' ' > 786: git grep --heading -e char -e lo_w hello.c hello_world >actual && > 808: git grep --break --heading -n --color \ > Nice! I really missed that. You can also add --perl-regexp (since 1.7.6-rc0) to alias.ack to achive more compability with ack (although it uses Perl regexes, not PCRE).