Hi,
I'd find it very handy to be able to print the current ref (latest branch/commit), if one was not provided explicitly.
type HasCommitSHA interface {
CommitSHA() string
}
fs, _ := gitfs.New(ctx, "github.com/x/y/static")
if v, ok := fs.(HasCommitSHA); ok {
fmt.Println("current commit:", v.CommitSHA())
}
Is this somehow possible right now? Would you be open to such functionality?
Thanks,
Vojtech
P.S.: gitfs works very well, thank you for this project! We started using it in https://github.com/webrpc/webrpc.