Skip to content
David Anthoff edited this page Mar 9, 2019 · 3 revisions

Welcome to the MimiRegistry wiki!

The code to get the git-tree-sha1 for a given commit is this:

using LibGit2; string(LibGit2.GitHash(LibGit2.peel(LibGit2.GitTree, LibGit2.GitCommit(GitRepo("."), "v0.0.1"))))

This also works:

git log --pretty=format:'%T %s'
Clone this wiki locally