mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 13:09:23 -05:00
doc: cookbook: Clarify 'git-fetch' conventions.
* doc/guix-cookbook.texi (Extended example): Clarify use of 'git-file-name' and 'git-version'.
This commit is contained in:
parent
62115b7ab7
commit
ab83e1f054
1 changed files with 6 additions and 4 deletions
|
@ -843,12 +843,14 @@ tags, so if the @code{version} is tagged, then it can be used directly. Sometim
|
||||||
the tag is prefixed with a @code{v}, in which case you'd use @code{(commit (string-append
|
the tag is prefixed with a @code{v}, in which case you'd use @code{(commit (string-append
|
||||||
"v" version))}.
|
"v" version))}.
|
||||||
|
|
||||||
To ensure that the source code from the Git repository is stored in a unique
|
To ensure that the source code from the Git repository is stored in a
|
||||||
directory with a readable name we use @code{(file-name (git-file-name name
|
directory with a descriptive name, we use @code{(file-name (git-file-name name
|
||||||
version))}.
|
version))}.
|
||||||
|
|
||||||
Note that there is also a @code{git-version} procedure that can be used to derive the
|
The @code{git-version} procedure that can be used to derive the
|
||||||
version when packaging programs for a specific commit.
|
version when packaging programs for a specific commit, following the
|
||||||
|
Guix contributor guidelines (@pxref{Version Numbers,,, guix, GNU Guix
|
||||||
|
Reference Manual}).
|
||||||
|
|
||||||
@subsubsection Snippets
|
@subsubsection Snippets
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue