Popularity
6.2
Stable
Activity
0.0
Stable
17
4
1

Monthly Downloads: 16
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Development    
Latest version: v0.3.1

libgit alternatives and similar packages

Based on the "Development" category.
Alternatively, view libgit alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of libgit or a related project?

Add another 'Development' Package

README

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)


*Note that all licence references and agreements mentioned in the libgit README section above are relevant to that project's source code only.