This repository is no longer maintained. Please consider forking if further development is required.
Some handy Template Haskell splices for including the current git hash
and branch in the code of your project. Useful for including in panic
messages, --version output, or diagnostic info for more informative
bug reports.
Most of the complication in the GitRev module is due to the various
places the current git hash might be stored:
.git/HEAD.git/HEAD
in a location like .git/refs/heads.git/packed-refs.git directory firstThese files are added as dependencies to modules that use GitRev, and
so the module should be rebuilt automatically whenever these files
change.
If you run into further scenarios that cause problems, let me know!
Haskell
100.0%
This repository is no longer maintained. Please consider forking if further development is required.
Some handy Template Haskell splices for including the current git hash
and branch in the code of your project. Useful for including in panic
messages, --version output, or diagnostic info for more informative
bug reports.
Most of the complication in the GitRev module is due to the various
places the current git hash might be stored:
.git/HEAD.git/HEAD
in a location like .git/refs/heads.git/packed-refs.git directory firstThese files are added as dependencies to modules that use GitRev, and
so the module should be rebuilt automatically whenever these files
change.
If you run into further scenarios that cause problems, let me know!
Haskell
100.0%