Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Cmd.SaveGitT

Description

Types used by Cmd.SaveGit. This is so Cmd.Cmd doesn't have to incur a dependency on the libgit2 bindings. This doesn't matter so much now that it's an external package, but it still seems like isolating dependencies is a good thing.

Synopsis

Documentation

data SaveHistory Source #

History to be saved to disk. The updates are post-diff to know which bits of state to write, and the commit is what commit the updates are relative to, if any. If they're Nothing, then save everything.

It's very important to bundle the commit and updates together, because without the commit to know what they are relative to, the updates don't mean anything, and if they're applied on top of the wrong commit the result will be a corrupted state.

Instances

Instances details
Show SaveHistory Source # 
Instance details

Defined in Cmd.SaveGitT

Pretty.Pretty SaveHistory Source # 
Instance details

Defined in Cmd.SaveGitT

data User Source #

Git wants these fields for commits. It probably doesn't matter much what they are, but they might as well be accurate.

Constructors

User 

Fields

Instances

Instances details
Show User Source # 
Instance details

Defined in Cmd.SaveGitT

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #