Commit d9a08763081380cd9397e270eebe9186bc435c89 Parent: 8e097ae036350cbbfcb03249c5744ec3ccee5e31 Author: mcol <mcol@posteo.net> Date: 2021-09-22 12:59:31 +0100 Committer: mcol <mcol@posteo.net> Committed: 2021-09-22 12:59:31 +0100 Add some descriptions for ginger variables
src/Repositories.hs Modified
@@ -50,10 +50,19 @@ case ref of Nothing -> liftIO . print $ "gitserve: " <> name <> ": Failed to resolve HEAD." Just commitID -> do - description <- liftIO $ getDescription $ outPath </> "description" let head = Tagged commitID + -- Variables available in the ginger templates -- + + -- description: The description of the repository from repo/description, if + -- it exists + description <- liftIO $ getDescription $ outPath </> "description" + + -- commits: A list of `Git.Commit` objects to HEAD. commits <- getCommits head + + -- tree: A list of `(TreeFilePath, TreeEntry r)` objects at HEAD. tree <- getTree head + return () where name = takeFileName path