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

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