Re: [PATCH 3/3] grep: add --heading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Renà Scharfe <rene.scharfe <at> 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).

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]