diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-04-11 13:14:38 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-04-11 13:14:38 -0700 |
| commit | 0ddddf2f37e97ae9ef67150f934eff9ea4700a95 (patch) | |
| tree | 9d2ef3ab421367df816a193b6dc860182167fe2c /src | |
| parent | c13db98dce8bd0b7255d904761174372e8dd3a8e (diff) | |
Revert "Add info about git commit and date to `--version` info."
This reverts commit 9d7c01e4a412d488ca958df2d74a6231f24483c8.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/App/CommandLineOptions.hs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs index 9328fff1f..ffb7c5eb8 100644 --- a/src/Text/Pandoc/App/CommandLineOptions.hs +++ b/src/Text/Pandoc/App/CommandLineOptions.hs @@ -5,7 +5,6 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeApplications #-} -{-# LANGUAGE TemplateHaskell #-} {- | Module : Text.Pandoc.App.CommandLineOptions Copyright : Copyright (C) 2006-2022 John MacFarlane @@ -71,7 +70,6 @@ import qualified Data.ByteString.Lazy as B import qualified Data.Map as M import qualified Data.Text as T import qualified Text.Pandoc.UTF8 as UTF8 -import GitHash parseOptions :: [OptDescr (Opt -> IO Opt)] -> Opt -> IO Opt parseOptions options' defaults = do @@ -954,14 +952,9 @@ options = openlibs getglobal "_VERSION" peek top - let buildInfo = either - (\_ -> mempty) - (\gi -> "\nBuilt from commit " ++ giDescribe gi ++ - " on " ++ giCommitDate gi) - $$tGitInfoCwdTry UTF8.hPutStrLn stdout $ T.pack - $ prg ++ " " ++ T.unpack pandocVersion ++ buildInfo ++ + $ prg ++ " " ++ T.unpack pandocVersion ++ compileInfo ++ "\nScripting engine: " ++ luaVersion ++ "\nUser data directory: " ++ defaultDatadir ++ ('\n':copyrightMessage) |
