packages feed

githash 0.1.4.0 → 0.1.5.0

raw patch · 3 files changed

+16/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ GitHash: giTag :: GitInfo -> String

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ # ChangeLog for githash +## 0.1.5.0++* Add git tag output via git-describe+ ## 0.1.4.0  * Add git-describe output
githash.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: d5c62b9ed845682638a72f717272a1a46871ad89fc816b8f602622a6a2e17941+-- hash: 76e20e5de8ee3f6ad531cde0a1529cbbde0158147f0560b23ab57c69d735ede2  name:           githash-version:        0.1.4.0+version:        0.1.5.0 synopsis:       Compile git revision info into Haskell projects description:    Please see the README and documentation at <https://www.stackage.org/package/githash> category:       Development
src/GitHash.hs view
@@ -48,6 +48,7 @@   , giCommitCount   , giCommitMessage   , giDescribe+  , giTag     -- * Creators   , getGitInfo   , getGitRoot@@ -83,6 +84,7 @@   , _giFiles :: ![FilePath]   , _giCommitMessage :: !String   , _giDescribe :: !String+  , _giTag :: !String   }   deriving (Lift, Show) @@ -119,6 +121,12 @@ giDescribe :: GitInfo -> String giDescribe = _giDescribe +-- | The output of @git describe --always --tags@ for the most recent commit.+--+-- @since 0.1.5.0+giTag :: GitInfo -> String+giTag = _giTag+ -- | Get a list of files from within a @.git@ directory. getGitFilesRegular :: FilePath -> IO [FilePath] getGitFilesRegular git = do@@ -211,6 +219,8 @@   _giCommitMessage <- run ["log", "-1", "--pretty=%B"]    _giDescribe <- run ["describe", "--always"]++  _giTag <- run ["describe", "--always", "--tags"]    return GitInfo {..}