Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 523866

Summary: sys-apps/the_silver_searcher - add *.ebuild and *.eclass to supported file types
Product: Gentoo Linux Reporter: M8R-u38wij
Component: [OLD] Core systemAssignee: Jeff (JD) Horelick (RETIRED) <jdhore>
Status: RESOLVED FIXED    
Severity: normal CC: radhermit
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: the_silver_searcher-0.24.1-ebuild-type.patch
the_silver_searcher-0.24.1-r1.ebuild

Description M8R-u38wij 2014-09-27 11:14:24 UTC
'ag' can restrict the search to certain types of files e.g.:
ag --html <keyword>

Supported types can be listed with:
ag --list-file-types

Proposed patch adds *.ebuild and *.eclass to supported types so one cat use
ag --ebuild <keyword>
insted of
ag --file-search-regex '.*\.ebuild' <keyword>


Reproducible: Always
Comment 1 M8R-u38wij 2014-09-27 11:15:11 UTC
Created attachment 385602 [details, diff]
the_silver_searcher-0.24.1-ebuild-type.patch
Comment 2 M8R-u38wij 2014-09-27 11:17:06 UTC
Created attachment 385604 [details]
the_silver_searcher-0.24.1-r1.ebuild
Comment 3 Jeff (JD) Horelick (RETIRED) gentoo-dev 2014-09-28 06:17:50 UTC
Submitted upstream: https://github.com/ggreer/the_silver_searcher/pull/503

Upstream is pretty friendly and good with supporting patches so we'll do this via upstream without carrying a distro-specific patch if at all possible.
Comment 4 Jeff (JD) Horelick (RETIRED) gentoo-dev 2015-03-26 22:44:05 UTC
This patch was accepted by upstream. Will close this issue once a release is made and the version is bumped in Gentoo.
Comment 5 Elizabeth Myers 2016-02-05 04:17:30 UTC
Upstream has merged the PR in question. I'm closing this.
Comment 6 Elizabeth Myers 2016-02-05 04:19:15 UTC
Also forgot to mention that the ebuild has long since been updated.