go-git icon indicating copy to clipboard operation
go-git copied to clipboard

repository.Log with filename included in LogOptions will inf loop if file does not exist in repository

Open samuelatkins opened this issue 5 years ago • 1 comments

My issue is that the repository.Log with filename provided as an option will not search for changed directories by name, like the functionality in git log.

samuelatkins avatar Dec 08 '19 16:12 samuelatkins

I have done a minor investigation. I see that when diff trees are compared, if two directories have different hashes, instead of adding these directories as 'changed entities', we do nothing and then recurse into the directory to add changed files from within. I believe my issue would be solved by adding a changed directory to changes when running a diff tree

samuelatkins avatar Dec 08 '19 17:12 samuelatkins