src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.91k stars 541 forks source link

add `PathFilter func(string) bool` to LogOptions, #562 #1248

Closed ilius closed 4 years ago

ilius commented 4 years ago

This allow filtering commits based on directory path, or regexp on file path. It should be safe to close #562 with this.

LogOptions.FileName and NewCommitFileIterFromIter are kept for compatibility. Let me know if they should be removed.