vcs-revision-0.0.2: Facilities for accessing the version control revision of the current directory.
Distribution.VcsRevision.Git
Synopsis
getRevision :: IO (Maybe (String, Bool))Source
Nothing if we're not in a git repo, Just (hash,modified) if we're in a repo.