packages feed

github-0.1: samples/GitData/References/GitLsRemoteWithRef.hs

module GitLsRemoteWithRef where

import qualified Github.GitData.References as Github

main = do
  possibleReference <- Github.reference "mike-burns" "github" "heads/master"
  putStrLn $ either (\e -> "Error: " ++ show e)
                    formatReference
                    possibleReference

formatReference reference =
  (Github.gitObjectSha $ Github.gitReferenceObject reference) ++
    "\t" ++ (Github.gitReferenceRef reference)