From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5R5y-0007tb-8T for guix-patches@gnu.org; Mon, 09 Apr 2018 03:20:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5R5v-0002tI-0x for guix-patches@gnu.org; Mon, 09 Apr 2018 03:20:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:35195) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5R5u-0002rm-SX for guix-patches@gnu.org; Mon, 09 Apr 2018 03:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f5R5u-0000SL-HL for guix-patches@gnu.org; Mon, 09 Apr 2018 03:20:02 -0400 Subject: [bug#31089] [PATCH 3/5] services: cgit: Add support for file-like objects. Resent-Message-ID: References: <20180407170709.22160-1-clement@lassieur.org> <20180407170709.22160-3-clement@lassieur.org> From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: <20180407170709.22160-3-clement@lassieur.org> Date: Mon, 09 Apr 2018 09:19:37 +0200 Message-ID: <87lgdw26eu.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31089@debbugs.gnu.org Clément Lassieur writes: > * doc/guix.texi (Version Control Services): Update accordingly. > * gnu/services/cgit.scm (serialize-field, serialize-string, serialize-boolean, > serialize-integer, serialize-repository-cgit-configuration-list, > serialize-nginx-server-configuration-list, serialize-repo-field, > serialize-repo-boolean, serialize-repo-integer, serialize-module-link-path, > serialize-repository-directory, serialize-mimetype-alist): Return strings or > string-valued gexps and stop printing. > (repository-cgit-configuration)[source-filter, about-filter, commit-filter, > logo, owner-filter], (cgit-configuration)[auth-filter, commit-filter, css, > email-filter, favicon, include, logo, owner-filter, mimetype-file, readme, > source-filter]: Replace STRING with FILE-OBJECT. > (file-object?, serialize-file-object, repo-file-object?, > serialize-repo-file-object): New procedures. > (cgit-activation): Use SERIALIZE-CONFIGURATION's return value with > MIXED-TEXT-FILE instead of using its output with PLAIN-FILE. > --- > doc/guix.texi | 37 +++++++++--------- > gnu/services/cgit.scm | 87 ++++++++++++++++++++++++------------------- > 2 files changed, 67 insertions(+), 57 deletions(-) > > diff --git a/doc/guix.texi b/doc/guix.texi > index 738fdf65c..35d23e1be 100644 > --- a/doc/guix.texi > +++ b/doc/guix.texi > @@ -18552,7 +18552,7 @@ NGINX configuration. I'll also add: The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a string. > @end deftypevr > > -@deftypevr {@code{cgit-configuration} parameter} string about-filter > +@deftypevr {@code{cgit-configuration} parameter} file-object about-filter > Specifies a command which will be invoked to format the content of about > pages (both top-level and for each repository).