danielflower / maven-gitlog-plugin

Generates a change log for maven projects using git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a relative path filter

ittaiz opened this issue · comments

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.

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.

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

#38

Thanks!
Unfortunately we're no longer using the plugin...
On יום ה׳, 19 במאי 2016 at 16:51 Oliver Weiler notifications@github.com
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)