Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] JGit: BlameGenerator computeBlameResult() Null

I feel silly, that was it.  Thanks!  I added a code review for a small change in the comments, however, the build failed on Hudson which I don't quite understand.

My local JUnit tests don't all compile properly.  They seem to all pass except for: DirCacheCheckoutMaliciousPathTest.java  which is importing the Hamcrest Library which I didn't setup.  It doesn't look like this Hamcrest Library is used for much.  I submitted a bug report about potentially removing and replacing it with a built-in Java function.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=387316

-Patrick


On Tue, Aug 14, 2012 at 11:52 PM, Shawn Pearce <spearce@xxxxxxxxxxx> wrote:

On Aug 14, 2012 1:32 PM, "carlsonp @iastate.edu" <carlsonp@xxxxxxxxxxx> wrote:
>
> I hope this is the appropriate place to ask questions regarding the JGit code.  I am attempting to mimic the result of the following git command:
>
> git blame filename.txt
>
> I would like to identify the author associated with each line in the file.  I have the following code:
>
> Repository repo = new FileRepository("myrepo/.git");
> BlameGenerator bg = new BlameGenerator(repo, "myrepo/filename.txt"); //the queue in bg is null

Shouldn't this be just "filename.txt"? The blame code wants the path relative to the repository, not the working directory of the process calling it.



Back to the top