summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-09-17 10:04:49 +0200
committerLudovic Courtès <ludo@gnu.org>2021-09-18 19:37:45 +0200
commit59ee10754eddddb99e4a80b9e18aa12ed1b3d77a (patch)
tree0e5b7e9961218577b7b4f8dcf682f8fec3403cc9 /doc
parent6597f80839142cd341cbf6cee2f34eaf4de14533 (diff)
import: Add 'generic-git' updater.
* guix/git.scm (ls-remote-refs): New procedure. * tests/git.scm ("remote-refs" "remote-refs: only tags"): New tests. * guix/import/git.scm: New file. * doc/guix.texi (Invoking guix refresh): Document it. * tests/import-git.scm: New test file. * Makefile.am (MODULES, SCM_TESTS): Register the new files. Co-authored-by: Sarah Morgensen <iskarian@mgsn.dev> Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 2fc96879106..6436e83a7c8 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -11928,6 +11928,40 @@ the updater for @uref{https://launchpad.net, Launchpad} packages.
11928@item generic-html 11928@item generic-html
11929a generic updater that crawls the HTML page where the source tarball of 11929a generic updater that crawls the HTML page where the source tarball of
11930the package is hosted, when applicable. 11930the package is hosted, when applicable.
11931
11932@item generic-git
11933a generic updater for packages hosted on Git repositories. It tries to
11934be smart about parsing Git tag names, but if it is not able to parse the
11935tag name and compare tags correctly, users can define the following
11936properties for a package.
11937
11938@itemize
11939@item @code{release-tag-prefix}: a regular expression for matching a prefix of
11940the tag name.
11941
11942@item @code{release-tag-suffix}: a regular expression for matching a suffix of
11943the tag name.
11944
11945@item @code{release-tag-version-delimiter}: a string used as the delimiter in
11946the tag name for separating the numbers of the version.
11947
11948@item @code{accept-pre-releases}: by default, the updater will ignore
11949pre-releases; to make it also look for pre-releases, set the this
11950property to @code{#t}.
11951
11952@end itemize
11953
11954@lisp
11955(package
11956 (name "foo")
11957 ;; ...
11958 (properties
11959 '((release-tag-prefix . "^release0-")
11960 (release-tag-suffix . "[a-z]?$")
11961 (release-tag-version-delimiter . ":"))))
11962@end lisp
11963
11964
11931@end table 11965@end table
11932 11966
11933For instance, the following command only checks for updates of Emacs 11967For instance, the following command only checks for updates of Emacs