2017-09-29

(sph git)

_

import name

(sph git)

exports

git-archive

procedure

signature

path-repository [branch] additional-git-arguments ... ->

string [string] ->

description

create a compressed tar archive from the contents of a git repository without (most) git metadata.

uses the git built-in "git archive"

git-archive->file

procedure

signature

path-repository target-path [branch] additional-git-arguments ... ->

git-branch-exists?

procedure

signature

path-repository name ->

git-current-short-commit-hash

procedure

signature

path-repository [branch] ->

string -> string

description

results in the short commit hash for the latest commit in a git repository

git-last-commit-posixtime

procedure

signature

path-repository [branch] additional-git-arguments ... ->

string string string ... -> integer

description

return a timestamp for when the last commit in branch (master by default) has been made

git-last-commit-ymd

procedure

signature

path-repository [branch] additional-git-arguments ... ->

string string string ... -> string

description

return a date formatted like this 2017-01-25 for when the last commin in branch (master by default) has been made

git-revision-count

procedure

signature

path-repository ->


tags: guile documentation library scheme sph-lib computer git sph-git