unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: EuAndreh <eu@euandre.org>
Cc: help-guix@gnu.org
Subject: Re: How to select git:send-email output in config.scm?
Date: Sat, 08 Aug 2020 13:33:46 +0200	[thread overview]
Message-ID: <87lfipmkx1.fsf@nckx> (raw)
In-Reply-To: <875z9txy8n.fsf@euandre.org>

[-- Attachment #1: Type: text/plain, Size: 1136 bytes --]

EuAndreh 写道:
> I got a bit confused by that. On IRC pkill9 mentioned that "git" 
> is a
> package, but "git:send-email" is an output. But isn't "git" the 
> same as
> "git:out"?

No.  Packages are records (the things created by calling (package 
...), and upon which you can call (package-name ...) etc.).

git:out is the default output of the git package, but git:out or 
git:send-email aren't packages in themselves:

$ guix repl
scheme@(guix-user)> ,use (gnu packages)
scheme@(guix-user)> (specification->package "git")
$1 = #<package git@2.28.0 gnu/packages/version-control.scm:157 
790e385bd6e0>
scheme@(guix-user)> (specification->package+output "git")
$2 = #<package git@2.28.0 gnu/packages/version-control.scm:157 
790e385bd6e0>
$3 = "out"
scheme@(guix-user)> (specification->package+output 
"git:send-email")
$4 = #<package git@2.28.0 gnu/packages/version-control.scm:157 
790e385bd6e0>
$5 = "send-email"

In all three cases, the package record is identical, since there's 
only one ‘git’ package record.  Your selected output is simply 
returned as a string.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

      parent reply	other threads:[~2020-08-08 11:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-08  9:50 How to select git:send-email output in config.scm? EuAndreh
2020-08-08 11:26 ` Tobias Geerinckx-Rice
2020-08-08 14:11   ` EuAndreh
2020-08-08 18:16     ` Tobias Geerinckx-Rice
2020-08-08 20:53       ` EuAndreh
2020-08-08 11:33 ` Tobias Geerinckx-Rice [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfipmkx1.fsf@nckx \
    --to=me@tobias.gr \
    --cc=eu@euandre.org \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).