From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0HlkAULU2F8JHAAA0tVLHw (envelope-from ) for ; Tue, 15 Dec 2020 15:20:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ePzKOEHU2F8EYQAAbx9fmQ (envelope-from ) for ; Tue, 15 Dec 2020 15:20:33 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8D8229402A9 for ; Tue, 15 Dec 2020 15:20:33 +0000 (UTC) Received: from localhost ([::1]:55328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpC7s-0007X8-Db for larch@yhetil.org; Tue, 15 Dec 2020 10:20:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpC7e-0007Wp-IC for guix-devel@gnu.org; Tue, 15 Dec 2020 10:20:18 -0500 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:36560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpC7c-00023N-Ih; Tue, 15 Dec 2020 10:20:18 -0500 Received: by mail-qt1-x82c.google.com with SMTP id z20so14785292qtq.3; Tue, 15 Dec 2020 07:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:references:from:autocrypt:subject:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=Qg8HNDJmebxcweBlwSavEfBLldoTsmBNN2NNPOCgsrE=; b=jJgqVGZoBSqTVnazzkuTIIar7lkUjLH1PIja3cLvVaeDGsylnnbLBLL1eErQFsvy5U JLot2O0dUV95MDpH1vba0tuj/JhTU1C5n7JQl4ytt001vrS3/AzIZR7gUmw9EU1phcBp sAbScQevxot/CstlEf/aAmDgvpVVgO63rU8FQWQbtNRoEDtYgfRuSKscBCfp+v2GlpHW 3iitd5epjaeNUBzP/+09SM0xLiWXjEOy95s/YZlddyH8HM8iLEMNKh+GZdY2IHOt3Nr2 CLmCKzch8MIzTmwkOmEzgSG0PYWfjeUXmib0ZnYGpd9tlM1r8NHQWDYI2BFWue8aWj02 CHig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:autocrypt:subject :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=Qg8HNDJmebxcweBlwSavEfBLldoTsmBNN2NNPOCgsrE=; b=Z4T3pFUWhAs/WoSoNcyJq9gy0FTjYscEDKRx0uDqx3OE+V2ZKIo34lC/MViDjAtvme bhxcDiFz6lFndR0U+nTNvfORjmw5RK+uARD4i4pLSoySHBGZJ4jt+zDnx/yKwDEaAx41 KIdWb6QlkSGND0wRuiokd2/FizimjdE+0yQbmxvZjvTzRSEV74HapcPgXkWpCyqO8EhM V6EKxR2LJBryKUuhv2+/RHQONBMoxKyZnM8DG9yYHLwqtggTRBSYrj/tu9X43W7nzqyh Svh4hj79S0vq5X6cwTkAkZwAjaX/Li+VUZf6qr2DuvVnWsbf90uJ9DwdK9efgxxpN6eM 0vBg== X-Gm-Message-State: AOAM533sTnqV7ezxJUOemj3Emq0D9YqrvE16OGow/vdXAbcKQwqkjnGW V5GZHSqKUE4oFePZOhYe3ch5enp9I2P4cBkK57o= X-Google-Smtp-Source: ABdhPJzsXADzS4CUc4Oy98r9iI+x53z3w7AGDrgv83QqDnFmhRc2CyYYHBH53F9hojze7AXGQcDLCw== X-Received: by 2002:aed:3144:: with SMTP id 62mr38720130qtg.342.1608045613099; Tue, 15 Dec 2020 07:20:13 -0800 (PST) Received: from ?IPv6:2804:14c:bbe3:444c:2063:c2f6:5bdb:8650? ([2804:14c:bbe3:444c:2063:c2f6:5bdb:8650]) by smtp.gmail.com with ESMTPSA id j13sm17599469qtc.81.2020.12.15.07.20.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Dec 2020 07:20:12 -0800 (PST) To: zimoun , =?UTF-8?Q?G=c3=a1bor_Boskovits?= References: <86r1nwfdeu.fsf@gmail.com> <86lfe3fc0t.fsf@gmail.com> From: Magali Autocrypt: addr=magalilemes00@gmail.com; keydata= mQINBF/OWLMBEAC9RPIj/byKDnMrDYPUHdDUalPenP0p5XAfFWcWXqlWXAMBMZ0YQMYXPm/d 3VjWcR6D+LMubp1t+Txd26rld0LWOpQxLYWJqxua4/B2nmhH+dLZV0h+QWfXRV4IrJk697q1 HvH+UKt1azS1Ayt4ryO0kW30a0RlcrZHb54FJ6ZOyU6FMk36A1oQGQOC4FMjhfx5MmwK4Jw+ Gt/7w5UF17wI99/iy407P2gEtN+toJ6+SOQ5sXX7Ce29ytYkXO2JhrCtSZ81oyFwYfs3uC0S BEJAs932wRCrAC/sDcXk5Lxh3NEpfIxhazzqnHK31v7i6XypxN2rA1Fq95q0MmCXuFlZ7moU KmMuLY7u2itBvOrbqCECt93VQlKYtTm7Y/zLwqC3GbgKM94gtLGIXt1SiB8MButJL9W3kt0F nAquMqSVqwf/qZ7Shgv8TvhbjqnLLqxHiS2ZlYk+sWzU3EpktL+oKrPx/cIPRpS0mEzCAvW5 Vr4iZpaRNAutql9k9R8ROdzFX6l3B/0uQm7aK96snF1wHCnwfmy7TuCkVpnYqK+ISmPLRQf3 qCgX/BRhQOeo64ofXMNkagEf8WXtgUUqE60ZsMckgZWeM7x61ZnPGc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Pxlv6b6CFTY+NuAdOPU4wGe9QDr +dDNnOgaTybO5/p5Im0RZOmnMi+/q3hObfd+Ot6tGhliekaVvZZGpsoc7XTOIujrrnXyNl9r 3jhgd1QoW1Cy0TtM/tkZ/rgv+m0TWyY8KCIo1zdmgzCuVBhfr3PwSbL/+XkoOZODFnFvE6S5 P+4V/UHeaJzG+W9AYmVwcIcfTWX4QeOo2M/qPTRwn9mgJzYfGTr3l64q+iXWA+8MtQls0RYU ijdHLA== Subject: Re: [outreachy] Walk through the Git history (guix git {authenticate,log}) Message-ID: Date: Tue, 15 Dec 2020 12:20:09 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <86lfe3fc0t.fsf@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=magalilemes00@gmail.com; helo=mail-qt1-x82c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel , Mathieu Othacehe Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.21 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=jJgqVGZo; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 8D8229402A9 X-Spam-Score: -1.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: Eg7WTtEFR1kz Hello, I've been tweaking this piece of code below, trying to adapt it so that it could get the latest commit into the commit list too, but I haven't had success. On 12/12/2020 09:24, zimoun wrote: > --8<---------------cut here---------------start------------->8--- > $ guix repl > GNU Guile 3.0.4 > Copyright (C) 1995-2020 Free Software Foundation, Inc. > > Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. > This program is free software, and you are welcome to redistribute it > under certain conditions; type `,show c' for details. > > Enter `,help' for help. > scheme@(guix-user)> ,use(guix git) > scheme@(guix-user)> ,use(git) > scheme@(guix-user)> ,use(guix channels) > scheme@(guix-user)> ,use(ice-9 match) > scheme@(guix-user)> ,use(srfi srfi-1) =20 > scheme@(guix-user)> (define cache (url-cache-directory (channel-url %de= fault-guix-channel))) > scheme@(guix-user)> (define repo (repository-open cache)) > scheme@(guix-user)> (define (commit-list repo) > (let loop ((commit (commit-lookup repo > (reference-target (repository-head = repo)))) > (res '())) > (match (commit-parents commit) > (() (reverse res)) > ((head . tail) > (loop head (cons head res)))))) > > scheme@(guix-user)> (define commits (commit-list repo)) > scheme@(guix-user)> ,pp (take commits 5) > $1 =3D (# > # > # > # > #) > scheme@(guix-user)> cache > $2 =3D "/home/simon/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tn= laywmisyr27shj7apsnalwq" > scheme@(guix-user)> ,q > > $ repo=3D/home/simon/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3t= nlaywmisyr27shj7apsnalwq > $ git -C $repo log --oneline | head -n6 > 91e35e32a4 gnu: fcitx5-chinese-addons: Remove stale build steps. > 2639a99cf3 gnu: fcitx5-lua: Remove stale build steps. > f769ad12f1 gnu: toybox: Cross compile. > 8f330aebee gnu: busybox: Update to 1.32.0. > f765577dec gnu: Add emacs-webpaste. > 72e3614666 gnu: emacs-elpher: Mention gemini in synopsis and descriptio= n. > --8<---------------cut here---------------end--------------->8--- > > Well, =E2=80=99commit-list=E2=80=99 is far from perfect because all the= log is traversed > and the list reversed, aside that the first commit is not captured, > etc. But I hope you get the idea. It is a starting point to implement = a > draft of: > > guix git log --oneline This is what I've been doing: ------- $ guix repl GNU Guile 3.0.4 Copyright (C) 1995-2020 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guix-user)> ,use(guix git) scheme@(guix-user)> ,use(git) scheme@(guix-user)> ,use(guix channels) scheme@(guix-user)> ,use(ice-9 match) scheme@(guix-user)> (define cache (url-cache-directory (channel-url %default-guix-channel))) scheme@(guix-user)> cache $1 =3D "/home/magali/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisy= r27shj7apsnalwq" scheme@(guix-user)> (let* ((repo (repository-open cache)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (latest-commit =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (commit-lookup rep= o (reference-target (repository-head repo))))) =C2=A0=C2=A0=C2=A0 (let loop ((commit latest-commit) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (res (list latest-commit))) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (match (commit-parents commit) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = (() (reverse res)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = ((head . tail) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (loop head (cons head res)))))) Segmentation fault (core dumped) ------- I couldn't quite figure it out why I'm getting segfault. Any tips? Magali