gitlib-2.0.1.1: API library for working with Git repositories

Safe HaskellNone

Git.Commit.Push

Synopsis

Documentation

pushCommit :: (Repository m, Repository (t m), MonadTrans t) => CommitOid m -> Text -> t m (CommitOid (t m))Source

Fast-forward push a reference between repositories using a recursive copy. This can be extremely slow, but always works no matter which two backends are being used. It should be considered a matter of last resort, or for objects sets that are known to be small.