patchwork icon indicating copy to clipboard operation
patchwork copied to clipboard

Add filtering by file path in 'git-pw list'

Open robclark opened this issue 8 years ago • 2 comments

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.

robclark avatar Mar 02 '16 16:03 robclark

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.

dlespiau avatar Mar 03 '16 07:03 dlespiau

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.

robclark avatar Mar 03 '16 15:03 robclark