module Git

Overview

Git provides a wrapper around git.

TODO wrap libgit2 if it's available, so we can produce static binaries that don't require a subshell, or for git to be available.

Extended Modules

Defined in:

git.cr

Instance Method Summary

Instance Method Detail

def changelog(tag : String, ref = "HEAD") : String | Nil #

Generates a Markdown changelog between a previous tag and a ref.


[View source]
def config(name : String, key : String) : String | Nil #

[View source]
def log(range : String, format = "%s") : Array(String) #

Returns a changelog of commit subjects between two refs.


[View source]
def previous_tag(ref = "HEAD") : String | Nil #

Returns the tag before the given ref, or nil.


[View source]
def remotes : Enumerable(Remote) #

[View source]