Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

retrieving the stats on a commit #482

Closed
maleck13 opened this issue Jul 15, 2017 · 1 comment · Fixed by #613
Closed

retrieving the stats on a commit #482

maleck13 opened this issue Jul 15, 2017 · 1 comment · Fixed by #613

Comments

@maleck13
Copy link

Hey guys, thanks for a great library. I was curious if there is a way of get the stats from a commit. Something equivalent to git show --stat <hash> If not could I be pointed in roughly the right direction to add it?

@mcuadros
Copy link
Contributor

Sounds a nice to have, having a method func (c *Commit) Stats() (*CommitStats, error) for extract the required info you can do it from: https://github.com/src-d/go-git/blob/v4/plumbing/object/commit.go#L68

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants