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.9k stars 541 forks source link

Repository the Log method support directory ? #1176

Open kuops opened 5 years ago

kuops commented 5 years ago

can support directory ? like

git log -n 1 --pretty=format:%H .
git log -n 1 --pretty=format:%H ./main.go

in log options

f := "."
f := "./main.go"

the log.options {
   FileName: &f,
}