1[](https://travis-ci.org/acfoltzer/gitrev)
3Some handy Template Haskell splices for including the current git hash
4and branch in the code of your project. Useful for including in panic
5messages, `--version` output, or diagnostic info for more informative
8Most of the complication in the `GitRev` module is due to the various
9places the current git hash might be stored:
111. Detached HEAD: the hash is in `.git/HEAD`
122. On a branch or tag: the hash is in a file pointed to by `.git/HEAD`
13in a location like `.git/refs/heads`
143. On a branch or tag but in a repository with packed refs: the hash is
17These situations all arise under normal development workflows, but
18there might be further scenarios that cause problems. Let me know if
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list