patchwork
patchwork copied to clipboard
Add filtering by file path in 'git-pw list'
Vaguely connected to https://github.com/dlespiau/patchwork/issues/139 but I didn't want to hijack that issue.
With pwclient I do (for example) 'pwclient list msm' to list just patches w/ msm in the subject. It would be nice to be able to do similar. Although perhaps even better would be filtering on path (so you could just list the driver path(s) that you are interested in and see all the patches that touch the driver/subsystem/etc that you maintain.
So the first part of the feature request was easy and is done.
The search by path touched is interesting, I'll leave the issue open for that part. We don't currently stored anything more than the whole text of the patch which doesn't map well with SQL and search in text blobs. The easier way to go about it would be to store more structured data about the patches (probably a number of 'Hunk' objects which would represent the diff hunks of the patch) and search through that data.
Definitely a direction I'd love to go towards to.
ahh, cool.. I was hoping git already had some nice way to give you the changed paths (ie. similar to the --stat arg).. although I guess you want some way to get that from the server without having to download all the patches.