Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Retrieving all files that were changed by a commit?

Hi Fabian,

You can use org.eclipse.jgit.diff.DiffEntry.scan method and specify a TreeWalk configured with the tree from the commit and the tree from the parent commit: 

https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffEntry.java#L102

You can also take a look at the org.eclipse.egit.ui.internal.history.FileDiff class in EGit:

https://github.com/eclipse/egit/blob/master/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/FileDiff.java#L67

The FileDiff class is used by the History view and commit editor to find the files changed by a commit.

Sincerely,
Kevin Sawicki

On Thu, Sep 22, 2011 at 7:58 AM, <erimius@xxxxxx> wrote:
Hey Folks,

I'm looking for a way to retrieve all files that were changed by a commit.
This question was already asked by someone else in the eclipse forum but wasn't awnsered
so i decided to write you here.
( http://www.eclipse.org/forums/index.php/t/203825/ )
Hope you can help me.

Regards
Fabian
_______________________________________________
egit-dev mailing list
egit-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/egit-dev


Back to the top