Open hjwylde opened 9 years ago
At least in the current version, this works:
Just ref <- Git.resolveReference "HEAD"
commit <- Git.lookupCommit $ Tagged ref
tree <- Git.lookupTree $ Git.commitTree commit
xs <- Git.listTreeEntries True tree
return $ map fst xs
Hey, I'm trying to list all files in a git repo but unsure how to accomplish to this. Ideally it would have similar behaviour to
git ls-files
.I tried using:
But that seemed to not list everything:
I'm probably misunderstanding how to use trees and the index, so any help is appreciated :).