The lein-git-version plugin as loaded by lein itself.
The lein-git-version plugin as loaded by lein itself.
The default configuration values.
The default configuration values.
(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |