| git-blame --contents equivalent [message #1821344] |
Tue, 11 February 2020 05:28  |
Eclipse User |
|
|
|
Hello,
I'm using the JGit API to perform a blame on the working tree copy:
BlameCommand blamer = new BlameCommand(repository);
blamer.setFilePath(filePath);
BlameResult blame = blamer.call();
Is there a correspondence to the git-blame --contents argument ?
Looking inside org.eclipse.jgit.blame.BlameGenerator.prepareHead(), I'm tempted to believe I can use the BlameGenerator directly and use push() to put a different content for the working tree version, right?
Either way, I would prefer just setting a flag instead of working with low level API that I might not fully understand.
Thank you,
Alex
|
|
|
|
| Re: git-blame --contents equivalent [message #1821536 is a reply to message #1821498] |
Fri, 14 February 2020 05:50  |
Eclipse User |
|
|
|
Tim Wolf wrote on Thu, 13 February 2020 16:03...
That's a mighty strange post. The above was me; but it appears the server crash at the Eclipse Foundation somehow had corrupted my account, and the forum software thought the name was "Tim", not "Thomas", and I didn't have any forum posts yet...
[Updated on: Fri, 14 February 2020 05:51] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.07828 seconds