The lein-git-version plugin as loaded by lein itself.
The lein-git-version plugin as loaded by lein itself.
(default-status-to-version {:keys [tag version branch ahead ahead? dirty?]
:as git})
A function you may want use for :status-to-version
A function you may want use for :status-to-version
(middleware
{:keys [git-version name root] project-version :version :as project})
Leiningen middleware.
Function of a project to a project which inserts git status and ref information.
Tries to unconditionally create the :ref
, :ref-short
, :tag
,
:ahead
, :ahead?
and :dirty?
keys in the leiningen project
map. May create the :message
and :timestamp
keys as well.
If the project's :version
is :project/ref
or
:project/ref-short
, the git ref or short ref will be used as the
version of the project.
If the user has specified a :status-to-version
lambda under the
:git-version
configuration map, that function will be used to
compute a project version based on the current git state.
Leiningen middleware. Function of a project to a project which inserts git status and ref information. Tries to unconditionally create the `:ref`, `:ref-short`, `:tag`, `:ahead`, `:ahead?` and `:dirty?` keys in the leiningen project map. May create the `:message` and `:timestamp` keys as well. If the project's `:version` is `:project/ref` or `:project/ref-short`, the git ref or short ref will be used as the version of the project. If the user has specified a `:status-to-version` lambda under the `:git-version` configuration map, that function will be used to compute a project version based on the current git state.
(write-version-file {:keys [root] :as project} file keys)
Write a project "version" file.
Write a project "version" file.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close