Here is a small patch which adds a --skip-comments option to qgrep. It is meant to avoid the "|sed '/\.ebuild:[ \t]*#/d'" i've used a few times (just thought i may not be the only one). The patch applies on top of the one from bug #170795 ("--eclass").
Created attachment 113221 [details, diff] qgrep--add_skip-comments_option.patch
Created attachment 113549 [details, diff] qgrep--add_eclass_option.patch
Comment on attachment 113221 [details, diff] qgrep--add_skip-comments_option.patch Bleh... The second patch i've attached here is the one that was missing in bug #170795 :-/
Comment on attachment 113549 [details, diff] qgrep--add_eclass_option.patch wrong bug
/var/cvsroot/gentoo-projects/portage-utils/qgrep.c,v <-- qgrep.c new revision: 1.17; previous revision: 1.16
This is released in 0.1.25 Bug #168334 ; q -r dies with a segfault after emerge --sync Bug #168442 ; does not properly parse the profile location Bug #170795 ; add a -E/--eclass option to qgrep Bug #170797 ; add a -s/--skip-comments option to qgrep Bug #171024 ; opening '/usr/portage/.metadata.x' failed Bug #171374 ; Misc enhancements for qgrep Bug #172240 ; -A/-B options for qgrep (context lines) Bug #172338 ; qgrepping through installed ebuilds (in the VDB) Bug #173005 ; Colorized output for qgrep.
Closing