Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

vincenthz/hs-libgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haskell libgit

Build Status BSD Haskell

hs-libgit is a haskell wrapper for git.

It provides lowlevel operations (list/cat object, ..) and some high level operation (commit, checkout, diff...). it requires the git binary available on the system.

Example usage, in ghci

Prelude>:m +Lib.Git
Prelude Lib.Git> :m +System.Directory
Prelude Lib.Git System.Directory> createDirectoryIfMissing True "/tmp/repodir"
Prelude Lib.Git System.Directory> let cfg = makeConfig "/tmp/repodir" Nothing
Prelude Lib.Git System.Directory> runGit cfg (initDB False)

You will now have an initialised git repo in /tmp/repodir.

TODO

  • clean the commit/tree parsing
  • make it more robust/better error checking
  • split modules into multiples files (lowlevel, monad, highlevel)

About

haskell wrapper for git

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •