Versioce.Git (Versioce v2.0.0) View Source
Git utility functions for versioce
module.
Link to this section Summary
Functions
Stage files.
Make a commit with a message.
Get a list of messages from hash1 to hash2 in %{hash: "Commmit hash", message: "Commit message"}
format
Get message of a commit by its hash.
Generate tag name according to Versioce.Config.Git.tag_template/0
.
Returns a list of tags in %{hash: "Commmit hash", tag: "Tag name"}
format
Get initial commit hash.
Get git repository.
Create a tag.
Link to this section Functions
Specs
add([String.t()], Git.Repository.t()) :: String.t()
Stage files.
Specs
commit(String.t(), Git.Repository.t()) :: String.t()
Make a commit with a message.
Specs
get_commit_messages_in_range(String.t(), String.t(), Git.Repository.t()) :: [ %{hash: String.t(), message: String.t()} ]
Get a list of messages from hash1 to hash2 in %{hash: "Commmit hash", message: "Commit message"}
format
Specs
get_message_from_hash(String.t(), Git.Repository.t()) :: String.t()
Get message of a commit by its hash.
Specs
Generate tag name according to Versioce.Config.Git.tag_template/0
.
Specs
get_tags(Git.Repository.t()) :: [%{hash: String.t(), tag: String.t()}]
Returns a list of tags in %{hash: "Commmit hash", tag: "Tag name"}
format
Specs
initial_commit(Git.Repository.t()) :: String.t()
Get initial commit hash.
Specs
repo() :: Git.Repository.t()
Get git repository.
Specs
tag(String.t(), String.t(), [String.t()], Git.Repository.t()) :: String.t()
Create a tag.