aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-02-11 22:58:53 +0100
committerLudovic Courtès <ludo@gnu.org>2015-02-12 23:43:18 +0100
commitad3729536ab4fe233b32017ac889f026a4bad43e (patch)
tree1312679dda600e3ffbaa89e8fa2fcc5cde69b5a9 /doc
parent00ab945823261f039dd6e654ff2c79621fbd96cf (diff)
downloadgnu-guix-ad3729536ab4fe233b32017ac889f026a4bad43e.tar
gnu-guix-ad3729536ab4fe233b32017ac889f026a4bad43e.tar.gz
store: Add optional 'references' parameter to 'text-file'.
* guix/store.scm (text-file): Add optional 'references' parameter. Pass it to 'add-text-to-store'. * doc/guix.texi (The Store Monad): Adjust accordingly.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 0c6b1e4384..04b9b4aaae 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -2358,9 +2358,10 @@ Run @var{mval}, a monadic value in the store monad, in @var{store}, an
open store connection.
@end deffn
-@deffn {Monadic Procedure} text-file @var{name} @var{text}
+@deffn {Monadic Procedure} text-file @var{name} @var{text} [@var{references}]
Return as a monadic value the absolute file name in the store of the file
-containing @var{text}, a string.
+containing @var{text}, a string. @var{references} is a list of store items that the
+resulting text file refers to; it defaults to the empty list.
@end deffn
@deffn {Monadic Procedure} interned-file @var{file} [@var{name}] @