Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a relative path filter #17

Open
ittaiz opened this issue Nov 3, 2013 · 3 comments
Open

Add a relative path filter #17

ittaiz opened this issue Nov 3, 2013 · 3 comments

Comments

@ittaiz
Copy link

ittaiz commented Nov 3, 2013

Hi,
I have a use-case where several artifacts share the same git repo.
I'd like to be able to filter commit messages based on relative path from the repo's base.
I'd be glad to do the change and submit a pull request given you think it's doable and you don't have any objections to it.
It seems I just need to add a CommitFilter which knows if the commit contains files from that relative path.
Something like:
RevTree tree = commit.getTree(); return TreeWalk.forPath(repo, path, tree) != null;
I might be wrong since I have no jGit experience and this is just based on some googling.

@danielflower
Copy link
Owner

Hi, this looks useful too. I don't know how to implement it but it doesn't sound too hard. Would be good to see a pull request. Thanks.

@helpermethod
Copy link

helpermethod commented May 19, 2016

@ittaiz Hi this feature has been implemented in this pull request

#38

@ittaiz
Copy link
Author

ittaiz commented May 19, 2016

Thanks!
Unfortunately we're no longer using the plugin...
On יום ה׳, 19 במאי 2016 at 16:51 Oliver Weiler [email protected]
wrote:

@ittaiz https://github.com/ittaiz Hi feature this has been implemented
in this pull request

#38 #38


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#17 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants