Hello community,

here is the log from the commit of package ghc-githash for openSUSE:Factory 
checked in at 2020-10-27 19:03:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-githash (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-githash.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-githash"

Tue Oct 27 19:03:01 2020 rev:3 rq:844307 version:0.1.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-githash/ghc-githash.changes  2020-09-07 
21:21:48.593007586 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-githash.new.3463/ghc-githash.changes        
2020-10-27 19:03:14.442930772 +0100
@@ -1,0 +2,8 @@
+Tue Oct 27 03:32:21 UTC 2020 - [email protected]
+
+- Update githash to version 0.1.5.0.
+  ## 0.1.5.0
+
+  * Add git tag output via git-describe
+
+-------------------------------------------------------------------

Old:
----
  githash-0.1.4.0.tar.gz

New:
----
  githash-0.1.5.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-githash.spec ++++++
--- /var/tmp/diff_new_pack.DGyymH/_old  2020-10-27 19:03:15.306931401 +0100
+++ /var/tmp/diff_new_pack.DGyymH/_new  2020-10-27 19:03:15.306931401 +0100
@@ -19,7 +19,7 @@
 %global pkg_name githash
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.1.4.0
+Version:        0.1.5.0
 Release:        0
 Summary:        Compile git revision info into Haskell projects
 License:        BSD-3-Clause

++++++ githash-0.1.4.0.tar.gz -> githash-0.1.5.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/githash-0.1.4.0/ChangeLog.md 
new/githash-0.1.5.0/ChangeLog.md
--- old/githash-0.1.4.0/ChangeLog.md    2020-04-02 06:27:28.000000000 +0200
+++ new/githash-0.1.5.0/ChangeLog.md    2020-10-26 13:48:16.000000000 +0100
@@ -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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/githash-0.1.4.0/githash.cabal 
new/githash-0.1.5.0/githash.cabal
--- old/githash-0.1.4.0/githash.cabal   2020-04-02 06:32:26.000000000 +0200
+++ new/githash-0.1.5.0/githash.cabal   2020-10-26 13:48:24.000000000 +0100
@@ -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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/githash-0.1.4.0/src/GitHash.hs 
new/githash-0.1.5.0/src/GitHash.hs
--- old/githash-0.1.4.0/src/GitHash.hs  2020-04-02 06:27:28.000000000 +0200
+++ new/githash-0.1.5.0/src/GitHash.hs  2020-10-26 13:48:16.000000000 +0100
@@ -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
@@ -212,6 +220,8 @@
 
   _giDescribe <- run ["describe", "--always"]
 
+  _giTag <- run ["describe", "--always", "--tags"]
+
   return GitInfo {..}
 
 -- | Get the root directory of the Git repo containing the given file


Reply via email to