protocol
git_protocol
ï
Predicates for accessing a git project current branch and latest commit data.
logtalk_load(git(loader))
static
Public predicatesï
branch/2
ï
Returns the name of the current git branch. Fails if the directory is not a git repo or a sub-directory of a git repo directory.
static
branch(Directory,Branch)
branch(+atom,?atom)
- zero_or_one
commit_date/2
ï
Returns the latest commit date (strict ISO 8601 format). Fails if the directory is not a git repo or a sub-directory of a git repo directory.
static
commit_date(Directory,Date)
commit_date(+atom,-atom)
- zero_or_one
commit_hash/2
ï
Returns the latest commit hash. Fails if the directory is not a git repo or a sub-directory of a git repo directory.
static
commit_hash(Directory,Hash)
commit_hash(+atom,-atom)
- zero_or_one
commit_hash_abbreviated/2
ï
Returns the latest commit abbreviated hash. Fails if the directory is not a git repo or a sub-directory of a git repo directory.
static
commit_hash_abbreviated(Directory,Hash)
commit_hash_abbreviated(+atom,-atom)
- zero_or_one
commit_message/2
ï
Returns the latest commit message. Fails if the directory is not a git repo or a sub-directory of a git repo directory.
static
commit_message(Directory,Message)
commit_message(+atom,-atom)
- zero_or_one
commit_log/3
ï
Returns the git latest commit log output for the given format (see e.g. https://git-scm.com/docs/pretty-formats). Fails if the directory is not a git repo or a sub-directory of a git repo directory.
static
commit_log(Directory,Format,Output)
commit_log(+atom,+atom,-atom)
- zero_or_one
Protected predicatesï
(none)
Private predicatesï
(none)
Operatorsï
(none)