(assert-clean? version)
Throws if the repo is not clean.
Throws if the repo is not clean.
(commit version)
(commit version msg)
Commits with auto-stage of all changes. Takes optional commit message.
Commits with auto-stage of all changes. Takes optional commit message.
(count-since-last-tag)
(count-since-last-tag match-pattern)
Returns the numeric count of commits since the last tag. Some projects use that as a way to version.
It can also receive an optional git match pattern to be passed to git when looking for the tag.
If a tag is not found, an exception is thrown.
Returns the numeric count of commits since the last tag. Some projects use that as a way to version. It can also receive an optional git match pattern to be passed to git when looking for the tag. If a tag is not found, an exception is thrown.
(last-tag)
(last-tag match-pattern)
Returns the last tag from your repo. Many projects use tags to represent versions.
It can also receive an optional git match pattern to be passed to git when looking for the tag.
If a tag is not found, an exception is thrown.
Returns the last tag from your repo. Many projects use tags to represent versions. It can also receive an optional git match pattern to be passed to git when looking for the tag. If a tag is not found, an exception is thrown.
(push-all version)
(push-all version remote)
Pushes everything to origin
by default unless another remote has
been specified.
Pushes everything to `origin` by default unless another remote has been specified.
(push-tag version)
(push-tag version remote)
Pushes whatever has been tagged or added to origin
by default
unless another remote has been specified.
Pushes whatever has been tagged or added to `origin` by default unless another remote has been specified.
(sha)
(sha length)
Returns the current commit sha. By default it will return just the 7 first characters. You can specify more if you need to.
Returns the current commit sha. By default it will return just the 7 first characters. You can specify more if you need to.
(tag version)
Creates a local tag with the incoming version.
Creates a local tag with the incoming version.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close