Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Git log --follow

Hello, I’m trying to follow the history of a file when it’s path has changed.
I’ve tried more than 6 different implementations (I’m not going to say they were good as they didn’t work) and I’m at my wits end. 
Doing it by manually walking through all the commits and file trees seems to be the only way to do it but I’m hoping that one of you might have implemented something of the sorts.

I want to retrieve all versions of a file (in the paths before renames too for example) and have those in a single list.
If you’d like to see what I have so far (it doesn’t work) I can post that on a code-share site of sorts.

There’s one Stackoverflow question where someone got it working but I’ve not been successful with his code.
http://stackoverflow.com/questions/11471836/how-to-git-log-follow-path-in-jgit-to-retrieve-the-full-history-includi
it returns random other files with the desired file and returns duplicates too – how would I filter the duplicate files (by checking the commit type) from the final result?


Kind Regards

AJ Otto

Software Developer @ Adept ICT

 


Back to the top