Filter /compare by path
#165765
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
GitHub's
${repo}/compare/${ref1}...${ref2}page is extremely useful. I find it far nicer to read thangit diff ${ref1}...${ref2}. However, it is missing one critical feature, the ability to filter the commits by file path.On the command line I can run
git diff ${ref1}...${ref2} -- ${path}to generate a diff showing changes under the given path only (as opposed to changes in the entire repository). This is great for Monorepos since we don't care about what the changes in the other projects are in a lot of cases.Unfortunately, GitHub's
/comparepage does not support filtering by path. That means when there a lot of changes in the other projects it gets very hard to read the comparison.I like to link to comparisons a lot, so it would be great if there was a query parameter like
?path=/path/to/dirwhich would apply the filter.It seems like would not be hard to add this feature, and the payoff would be huge.
Beta Was this translation helpful? Give feedback.
All reactions