Copyright | (c) 2021-2022 berberman |
---|---|
License | MIT |
Maintainer | berberman <[email protected]> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides mechanisms for obtaining the git commit date. The cloned repo will not be preserved.
Synopsis
- newtype DateFormat = DateFormat (Maybe Text)
- data GetGitCommitDate = GetGitCommitDate {}
- getGitCommitDateRule :: Rules ()
- getGitCommitDate :: Text -> Text -> DateFormat -> Action Text
Types
newtype DateFormat Source #
strftime
format
Nothing defaults to %Y-%m-%d
Instances
data GetGitCommitDate Source #
Get the commit date by using shallow clone
_gformat
is in.
Note: Requires git >= 2.5
Instances
Rules
getGitCommitDateRule :: Rules () Source #
Functions
getGitCommitDate :: Text -> Text -> DateFormat -> Action Text Source #