| Copyright | (c) 2021-2022 berberman |
|---|---|
| License | MIT |
| Maintainer | berberman <berberman@yandex.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
NvFetcher.GetGitCommitDate
Description
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
Constructors
| DateFormat (Maybe Text) |
Instances
data GetGitCommitDate Source #
Get the commit date by using shallow clone
_gformat is in.
Note: Requires git >= 2.5
Constructors
| GetGitCommitDate | |
Instances
Rules
getGitCommitDateRule :: Rules () Source #
Functions
getGitCommitDate :: Text -> Text -> DateFormat -> Action Text Source #