* bug#58813: can't substitute etc/teams.scm command as doc suggests
@ 2022-10-27 3:50 Maxim Cournoyer
2022-10-27 6:08 ` Liliana Marie Prikler
0 siblings, 1 reply; 14+ messages in thread
From: Maxim Cournoyer @ 2022-10-27 3:50 UTC (permalink / raw)
To: 58813
Hi,
Today, I tried;
--8<---------------cut here---------------start------------->8---
$ git send-email --to=guix-patches@gnu.org \
$(./etc/teams.scm cc-members origin/master HEAD) 0000-cover-letter.patch
fatal: ambiguous argument 'some.email@redacted.com"': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
format-patch -o /tmp/pFSRbRNNoU --add-header="X-Debbugs-Cc: redacted@gmail.com" --add-header="X-Debbugs-Cc: redacted@email" [...]: command returned error: 128
$ ./etc/teams.scm cc-members origin/master HEAD
--add-header="X-Debbugs-Cc: redacted@email" --add-header="X-Debbugs-Cc: redacted@email" ...
--8<---------------cut here---------------end--------------->8---
You can see the command fails; this is because when using Bash command
substitution $(), the quotes in the result are not interpreted and are
thus part of the value (literals), which then gets split on white space.
As a quick hacky fix, I tried removing the space and double quotes
like:
modified etc/teams.scm.in
@@ -514,7 +514,7 @@ (define (cc . teams)
"Return arguments for `git send-email' to notify the members of the given
TEAMS when a patch is received by Debbugs."
(format #true
- "~{--add-header=\"X-Debbugs-Cc: ~a\"~^ ~}"
+ "~{--add-header=X-Debbugs-Cc:~a~^ ~}"
(map person-email
(delete-duplicates (append-map team-members teams) equal?))))
and sent a patch with that command:
git send-email --to=guix-patches@gnu.org \
$(./etc/teams.scm cc-members origin/master HEAD 0000-cover-letter.patch
It created https://issues.guix.gnu.org/58812 with it, but I don't see
any of the X-Debbugs-Cc headers. Mmmh.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#58813: can't substitute etc/teams.scm command as doc suggests
2022-10-27 3:50 Maxim Cournoyer
@ 2022-10-27 6:08 ` Liliana Marie Prikler
2022-10-27 12:40 ` Maxim Cournoyer
0 siblings, 1 reply; 14+ messages in thread
From: Liliana Marie Prikler @ 2022-10-27 6:08 UTC (permalink / raw)
To: Maxim Cournoyer, 58813
Am Mittwoch, dem 26.10.2022 um 23:50 -0400 schrieb Maxim Cournoyer:
> Hi,
>
> Today, I tried;
>
> --8<---------------cut here---------------start------------->8---
> $ git send-email --to=guix-patches@gnu.org \
> $(./etc/teams.scm cc-members origin/master HEAD) 0000-cover-
> letter.patch
> fatal: ambiguous argument 'some.email@redacted.com"': unknown
> revision or path not in the working tree.
> Use '--' to separate paths from revisions, like this:
> 'git <command> [<revision>...] -- [<file>...]'
> format-patch -o /tmp/pFSRbRNNoU --add-header="X-Debbugs-Cc:
> redacted@gmail.com" --add-header="X-Debbugs-Cc: redacted@email"
> [...]: command returned error: 128
>
> $ ./etc/teams.scm cc-members origin/master HEAD
> --add-header="X-Debbugs-Cc: redacted@email" --add-header="X-Debbugs-
> Cc: redacted@email" ...
> --8<---------------cut here---------------end--------------->8---
>
> You can see the command fails; this is because when using Bash
> command substitution $(), the quotes in the result are not
> interpreted and are thus part of the value (literals), which then
> gets split on white space.
>
> As a quick hacky fix, I tried removing the space and double quotes
> like:
>
> modified etc/teams.scm.in
> @@ -514,7 +514,7 @@ (define (cc . teams)
> "Return arguments for `git send-email' to notify the members of
> the given
> TEAMS when a patch is received by Debbugs."
> (format #true
> - "~{--add-header=\"X-Debbugs-Cc: ~a\"~^ ~}"
> + "~{--add-header=X-Debbugs-Cc:~a~^ ~}"
> (map person-email
> (delete-duplicates (append-map team-members teams)
> equal?))))
>
> and sent a patch with that command:
>
> git send-email --to=guix-patches@gnu.org \
> $(./etc/teams.scm cc-members origin/master HEAD 0000-cover-
> letter.patch
>
> It created https://issues.guix.gnu.org/58812 with it, but I don't see
> any of the X-Debbugs-Cc headers. Mmmh.
Note that the existing etc/teams also assumes there are no funny
characters in the quote. So it's susceptible to good ol' bobby tables.
Could we, instead of outputting a command, make it so that we can pass
an already formatted patch and etc/teams rewrites it?
Cheers
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#58813: can't substitute etc/teams.scm command as doc suggests
2022-10-27 6:08 ` Liliana Marie Prikler
@ 2022-10-27 12:40 ` Maxim Cournoyer
2022-10-27 16:27 ` Liliana Marie Prikler
0 siblings, 1 reply; 14+ messages in thread
From: Maxim Cournoyer @ 2022-10-27 12:40 UTC (permalink / raw)
To: Liliana Marie Prikler; +Cc: 58813
Hi,
Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
> Am Mittwoch, dem 26.10.2022 um 23:50 -0400 schrieb Maxim Cournoyer:
>> Hi,
>>
>> Today, I tried;
>>
>> --8<---------------cut here---------------start------------->8---
>> $ git send-email --to=guix-patches@gnu.org \
>> $(./etc/teams.scm cc-members origin/master HEAD) 0000-cover-
>> letter.patch
>> fatal: ambiguous argument 'some.email@redacted.com"': unknown
>> revision or path not in the working tree.
>> Use '--' to separate paths from revisions, like this:
>> 'git <command> [<revision>...] -- [<file>...]'
>> format-patch -o /tmp/pFSRbRNNoU --add-header="X-Debbugs-Cc:
>> redacted@gmail.com" --add-header="X-Debbugs-Cc: redacted@email"
>> [...]: command returned error: 128
>>
>> $ ./etc/teams.scm cc-members origin/master HEAD
>> --add-header="X-Debbugs-Cc: redacted@email" --add-header="X-Debbugs-
>> Cc: redacted@email" ...
>> --8<---------------cut here---------------end--------------->8---
>>
>> You can see the command fails; this is because when using Bash
>> command substitution $(), the quotes in the result are not
>> interpreted and are thus part of the value (literals), which then
>> gets split on white space.
>>
>> As a quick hacky fix, I tried removing the space and double quotes
>> like:
>>
>> modified etc/teams.scm.in
>> @@ -514,7 +514,7 @@ (define (cc . teams)
>> "Return arguments for `git send-email' to notify the members of
>> the given
>> TEAMS when a patch is received by Debbugs."
>> (format #true
>> - "~{--add-header=\"X-Debbugs-Cc: ~a\"~^ ~}"
>> + "~{--add-header=X-Debbugs-Cc:~a~^ ~}"
>> (map person-email
>> (delete-duplicates (append-map team-members teams)
>> equal?))))
>>
>> and sent a patch with that command:
>>
>> git send-email --to=guix-patches@gnu.org \
>> $(./etc/teams.scm cc-members origin/master HEAD 0000-cover-
>> letter.patch
>>
>> It created https://issues.guix.gnu.org/58812 with it, but I don't see
>> any of the X-Debbugs-Cc headers. Mmmh.
> Note that the existing etc/teams also assumes there are no funny
> characters in the quote. So it's susceptible to good ol' bobby tables.
>
> Could we, instead of outputting a command, make it so that we can pass
> an already formatted patch and etc/teams rewrites it?
The solution suggested to me in #bash would be to turn etc/teams.scm
into a git wrapper, that could invoke git with all the arguments at once
(allowing people to pass arguments themselves). I'm told the git
completion could be hooked to such script so that users can still enjoy
git tab-completion when using etc/teams.scm, although I haven't
researched how that'd all work.
A similar idea proposed by selckin on #git would be to have our
etc/teams.scm script receive the complete git command, and append the
args to it itself (and invoke it), like so:
./etc/teams.scm cc mentors -- git send-email --to XXX@debbugs.gnu.org *.patch
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#58813: can't substitute etc/teams.scm command as doc suggests
2022-10-27 12:40 ` Maxim Cournoyer
@ 2022-10-27 16:27 ` Liliana Marie Prikler
0 siblings, 0 replies; 14+ messages in thread
From: Liliana Marie Prikler @ 2022-10-27 16:27 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: 58813
Am Donnerstag, dem 27.10.2022 um 08:40 -0400 schrieb Maxim Cournoyer:
> Hi,
>
> Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
>
> > Am Mittwoch, dem 26.10.2022 um 23:50 -0400 schrieb Maxim Cournoyer:
> > > Hi,
> > >
> > > Today, I tried;
> > >
> > > --8<---------------cut here---------------start------------->8---
> > > $ git send-email --to=guix-patches@gnu.org \
> > > $(./etc/teams.scm cc-members origin/master HEAD) 0000-cover-
> > > letter.patch
> > > fatal: ambiguous argument 'some.email@redacted.com"': unknown
> > > revision or path not in the working tree.
> > > Use '--' to separate paths from revisions, like this:
> > > 'git <command> [<revision>...] -- [<file>...]'
> > > format-patch -o /tmp/pFSRbRNNoU --add-header="X-Debbugs-Cc:
> > > redacted@gmail.com" --add-header="X-Debbugs-Cc: redacted@email"
> > > [...]: command returned error: 128
> > >
> > > $ ./etc/teams.scm cc-members origin/master HEAD
> > > --add-header="X-Debbugs-Cc: redacted@email" --add-header="X-
> > > Debbugs-
> > > Cc: redacted@email" ...
> > > --8<---------------cut here---------------end--------------->8---
> > >
> > > You can see the command fails; this is because when using Bash
> > > command substitution $(), the quotes in the result are not
> > > interpreted and are thus part of the value (literals), which then
> > > gets split on white space.
> > >
> > > As a quick hacky fix, I tried removing the space and double
> > > quotes
> > > like:
> > >
> > > modified etc/teams.scm.in
> > > @@ -514,7 +514,7 @@ (define (cc . teams)
> > > "Return arguments for `git send-email' to notify the members
> > > of
> > > the given
> > > TEAMS when a patch is received by Debbugs."
> > > (format #true
> > > - "~{--add-header=\"X-Debbugs-Cc: ~a\"~^ ~}"
> > > + "~{--add-header=X-Debbugs-Cc:~a~^ ~}"
> > > (map person-email
> > > (delete-duplicates (append-map team-members
> > > teams)
> > > equal?))))
> > >
> > > and sent a patch with that command:
> > >
> > > git send-email --to=guix-patches@gnu.org \
> > > $(./etc/teams.scm cc-members origin/master HEAD 0000-cover-
> > > letter.patch
> > >
> > > It created https://issues.guix.gnu.org/58812 with it, but I don't
> > > see
> > > any of the X-Debbugs-Cc headers. Mmmh.
> > Note that the existing etc/teams also assumes there are no funny
> > characters in the quote. So it's susceptible to good ol' bobby
> > tables.
> >
> > Could we, instead of outputting a command, make it so that we can
> > pass
> > an already formatted patch and etc/teams rewrites it?
>
> The solution suggested to me in #bash would be to turn etc/teams.scm
> into a git wrapper, that could invoke git with all the arguments at
> once (allowing people to pass arguments themselves). I'm told the
> git completion could be hooked to such script so that users can still
> enjoy git tab-completion when using etc/teams.scm, although I haven't
> researched how that'd all work.
>
> A similar idea proposed by selckin on #git would be to have our
> etc/teams.scm script receive the complete git command, and append the
> args to it itself (and invoke it), like so:
>
> ./etc/teams.scm cc mentors -- git send-email --to
> XXX@debbugs.gnu.org *.patch
I think we should go with the former and implement a proper "guix send-
email" ;)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Bogus ‘etc/teams.scm’ usage recommendations?
@ 2023-01-03 22:29 Ludovic Courtès
2023-01-05 12:21 ` Simon Tournier
0 siblings, 1 reply; 14+ messages in thread
From: Ludovic Courtès @ 2023-01-03 22:29 UTC (permalink / raw)
To: guix-devel
Hello Guix!
The manual recommends this (info "(guix) Teams"):
git send-email --to ISSUE_NUMBER@debbugs.gnu.org $(./etc/teams.scm cc mentors) *.patch
where:
--8<---------------cut here---------------start------------->8---
λ ./etc/teams.scm cc mentors
--add-header="X-Debbugs-Cc: rg@raghavgururajan.name" --add-header="X-Debbugs-Cc: zimon.toutoune@gmail.com" …
--8<---------------cut here---------------end--------------->8---
I believe this cannot work because the shell will split words on each
whitespace; IOW, the double quotes above do not have the desired effect.
The second issue is that passing ‘--add-header’ to ‘git send-email’
seems to have no effect. AIUI, ‘git send-email’ passes those to ‘git
format-patch’, except that it has no reason to invoke it, right?
Maybe I’m missing something but it looks like we have documentation to
improve. Thoughts?
Ludo’.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bogus ‘etc/teams.scm’ usage recommendations?
2023-01-03 22:29 Bogus ‘etc/teams.scm’ usage recommendations? Ludovic Courtès
@ 2023-01-05 12:21 ` Simon Tournier
2023-01-05 17:03 ` bug#58813: " Maxim Cournoyer
2023-01-05 17:03 ` Bogus ‘etc/teams.scm’ usage recommendations? Maxim Cournoyer
0 siblings, 2 replies; 14+ messages in thread
From: Simon Tournier @ 2023-01-05 12:21 UTC (permalink / raw)
To: Ludovic Courtès, guix-devel
Hi Ludo,
On Tue, 03 Jan 2023 at 23:29, Ludovic Courtès <ludo@gnu.org> wrote:
> The manual recommends this (info "(guix) Teams"):
>
> git send-email --to ISSUE_NUMBER@debbugs.gnu.org $(./etc/teams.scm cc mentors) *.patch
>
> where:
>
> --8<---------------cut here---------------start------------->8---
> λ ./etc/teams.scm cc mentors
> --add-header="X-Debbugs-Cc: rg@raghavgururajan.name" --add-header="X-Debbugs-Cc: zimon.toutoune@gmail.com" …
> --8<---------------cut here---------------end--------------->8---
>
> I believe this cannot work because the shell will split words on each
> whitespace; IOW, the double quotes above do not have the desired effect.
Well, IIUC, this part is tracked by #58813 [1].
1: <http://issues.guix.gnu.org/issue/58813>
Cheers,
simon
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Bogus ‘etc/teams.scm’ usage recommendations?
2023-01-05 12:21 ` Simon Tournier
2023-01-05 17:03 ` bug#58813: " Maxim Cournoyer
@ 2023-01-05 17:03 ` Maxim Cournoyer
1 sibling, 0 replies; 14+ messages in thread
From: Maxim Cournoyer @ 2023-01-05 17:03 UTC (permalink / raw)
To: Simon Tournier; +Cc: 58813, Ludovic Courtès, guix-devel
+CC 58813@debbugs.gnu.org
Hi,
Simon Tournier <zimon.toutoune@gmail.com> writes:
> Hi Ludo,
>
> On Tue, 03 Jan 2023 at 23:29, Ludovic Courtès <ludo@gnu.org> wrote:
>
>> The manual recommends this (info "(guix) Teams"):
>>
>> git send-email --to ISSUE_NUMBER@debbugs.gnu.org $(./etc/teams.scm cc mentors) *.patch
>>
>> where:
>>
>> --8<---------------cut here---------------start------------->8---
>> λ ./etc/teams.scm cc mentors
>> --add-header="X-Debbugs-Cc: rg@raghavgururajan.name"
>> --add-header="X-Debbugs-Cc: zimon.toutoune@gmail.com" …
>> --8<---------------cut here---------------end--------------->8---
>>
>> I believe this cannot work because the shell will split words on each
>> whitespace; IOW, the double quotes above do not have the desired effect.
> Well, IIUC, this part is tracked by #58813 [1].
>
> 1: <http://issues.guix.gnu.org/issue/58813>
Indeed (CC'd).
I thought about not using whitespace in the generated output, but I'm
not sure if Debbugs or email clients in general would care, plus it's a
dirty fix.
With the recent patman integration merged (though do apply #60576 as a
fixup commit), I'm tempted to remove the mentions of git send-email
$(etc/teams.scm cc-members ...) and replace that by 'Further automation
of git send-email and etc/teams.scm is possible via the patman package'.
What do you think?
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#58813: Bogus ‘etc/teams.scm’ usage recommendations?
2023-01-05 12:21 ` Simon Tournier
@ 2023-01-05 17:03 ` Maxim Cournoyer
2023-01-09 17:23 ` bug#58813: can't substitute etc/teams.scm command as doc suggests Ludovic Courtès
2023-01-05 17:03 ` Bogus ‘etc/teams.scm’ usage recommendations? Maxim Cournoyer
1 sibling, 1 reply; 14+ messages in thread
From: Maxim Cournoyer @ 2023-01-05 17:03 UTC (permalink / raw)
To: Simon Tournier; +Cc: guix-devel, Ludovic Courtès, 58813
+CC 58813@debbugs.gnu.org
Hi,
Simon Tournier <zimon.toutoune@gmail.com> writes:
> Hi Ludo,
>
> On Tue, 03 Jan 2023 at 23:29, Ludovic Courtès <ludo@gnu.org> wrote:
>
>> The manual recommends this (info "(guix) Teams"):
>>
>> git send-email --to ISSUE_NUMBER@debbugs.gnu.org $(./etc/teams.scm cc mentors) *.patch
>>
>> where:
>>
>> --8<---------------cut here---------------start------------->8---
>> λ ./etc/teams.scm cc mentors
>> --add-header="X-Debbugs-Cc: rg@raghavgururajan.name"
>> --add-header="X-Debbugs-Cc: zimon.toutoune@gmail.com" …
>> --8<---------------cut here---------------end--------------->8---
>>
>> I believe this cannot work because the shell will split words on each
>> whitespace; IOW, the double quotes above do not have the desired effect.
> Well, IIUC, this part is tracked by #58813 [1].
>
> 1: <http://issues.guix.gnu.org/issue/58813>
Indeed (CC'd).
I thought about not using whitespace in the generated output, but I'm
not sure if Debbugs or email clients in general would care, plus it's a
dirty fix.
With the recent patman integration merged (though do apply #60576 as a
fixup commit), I'm tempted to remove the mentions of git send-email
$(etc/teams.scm cc-members ...) and replace that by 'Further automation
of git send-email and etc/teams.scm is possible via the patman package'.
What do you think?
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: bug#58813: can't substitute etc/teams.scm command as doc suggests
2023-01-05 17:03 ` bug#58813: " Maxim Cournoyer
@ 2023-01-09 17:23 ` Ludovic Courtès
2023-01-09 20:52 ` Maxim Cournoyer
0 siblings, 1 reply; 14+ messages in thread
From: Ludovic Courtès @ 2023-01-09 17:23 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: Simon Tournier, guix-devel, 58813
Hi,
Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
> Simon Tournier <zimon.toutoune@gmail.com> writes:
>
>> Hi Ludo,
>>
>> On Tue, 03 Jan 2023 at 23:29, Ludovic Courtès <ludo@gnu.org> wrote:
>>
>>> The manual recommends this (info "(guix) Teams"):
>>>
>>> git send-email --to ISSUE_NUMBER@debbugs.gnu.org $(./etc/teams.scm cc mentors) *.patch
>>>
>>> where:
>>>
>>> --8<---------------cut here---------------start------------->8---
>>> λ ./etc/teams.scm cc mentors
>>> --add-header="X-Debbugs-Cc: rg@raghavgururajan.name"
>>> --add-header="X-Debbugs-Cc: zimon.toutoune@gmail.com" …
>>> --8<---------------cut here---------------end--------------->8---
>>>
>>> I believe this cannot work because the shell will split words on each
>>> whitespace; IOW, the double quotes above do not have the desired effect.
>
>> Well, IIUC, this part is tracked by #58813 [1].
>>
>> 1: <http://issues.guix.gnu.org/issue/58813>
>
> Indeed (CC'd).
>
> I thought about not using whitespace in the generated output, but I'm
> not sure if Debbugs or email clients in general would care, plus it's a
> dirty fix.
Right.
How about just outputting a line like:
X-Debbugs-Cc: maxim@example.org, ludo@example.org
that people would paste in their cover letter?
How do Linux’s scripts work?
> With the recent patman integration merged (though do apply #60576 as a
> fixup commit), I'm tempted to remove the mentions of git send-email
> $(etc/teams.scm cc-members ...) and replace that by 'Further automation
> of git send-email and etc/teams.scm is possible via the patman package'.
>
> What do you think?
This is the first time I hear about patman. :-)
The “Submitting Patches” section mentions ‘git send-email’; I don’t
think this is about to change, is it?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: bug#58813: can't substitute etc/teams.scm command as doc suggests
2023-01-09 17:23 ` bug#58813: can't substitute etc/teams.scm command as doc suggests Ludovic Courtès
@ 2023-01-09 20:52 ` Maxim Cournoyer
2023-01-11 15:20 ` Simon Tournier
0 siblings, 1 reply; 14+ messages in thread
From: Maxim Cournoyer @ 2023-01-09 20:52 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Simon Tournier, guix-devel, 58813
Hi Ludovic,
Ludovic Courtès <ludo@gnu.org> writes:
> Hi,
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> Simon Tournier <zimon.toutoune@gmail.com> writes:
>>
>>> Hi Ludo,
>>>
>>> On Tue, 03 Jan 2023 at 23:29, Ludovic Courtès <ludo@gnu.org> wrote:
>>>
>>>> The manual recommends this (info "(guix) Teams"):
>>>>
>>>> git send-email --to ISSUE_NUMBER@debbugs.gnu.org $(./etc/teams.scm cc mentors) *.patch
>>>>
>>>> where:
>>>>
>>>> --8<---------------cut here---------------start------------->8---
>>>> λ ./etc/teams.scm cc mentors
>>>> --add-header="X-Debbugs-Cc: rg@raghavgururajan.name"
>>>> --add-header="X-Debbugs-Cc: zimon.toutoune@gmail.com" …
>>>> --8<---------------cut here---------------end--------------->8---
>>>>
>>>> I believe this cannot work because the shell will split words on each
>>>> whitespace; IOW, the double quotes above do not have the desired effect.
>>
>>> Well, IIUC, this part is tracked by #58813 [1].
>>>
>>> 1: <http://issues.guix.gnu.org/issue/58813>
>>
>> Indeed (CC'd).
>>
>> I thought about not using whitespace in the generated output, but I'm
>> not sure if Debbugs or email clients in general would care, plus it's a
>> dirty fix.
>
> Right.
>
> How about just outputting a line like:
>
> X-Debbugs-Cc: maxim@example.org, ludo@example.org
>
> that people would paste in their cover letter?
Yes, that's better.
> How do Linux’s scripts work?
I think the scripts just print stuff at the terminal and expect the user
to copy paste. Patman can be used to provide automation on top of that.
>> With the recent patman integration merged (though do apply #60576 as a
>> fixup commit), I'm tempted to remove the mentions of git send-email
>> $(etc/teams.scm cc-members ...) and replace that by 'Further automation
>> of git send-email and etc/teams.scm is possible via the patman package'.
>>
>> What do you think?
>
> This is the first time I hear about patman. :-)
>
> The “Submitting Patches” section mentions ‘git send-email’; I don’t
> think this is about to change, is it?
It wouldn't change; patman would be hinted at briefly with a reference
to its documentation (info '(u-boot) Patman patch manager' from the
u-boot-documentation package) as a nice way to stay organize with
submissions and automate a few things on top of git send-email.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: bug#58813: can't substitute etc/teams.scm command as doc suggests
2023-01-09 20:52 ` Maxim Cournoyer
@ 2023-01-11 15:20 ` Simon Tournier
2023-01-12 3:00 ` Maxim Cournoyer
0 siblings, 1 reply; 14+ messages in thread
From: Simon Tournier @ 2023-01-11 15:20 UTC (permalink / raw)
To: Maxim Cournoyer, Ludovic Courtès; +Cc: guix-devel, 58813
Hi,
On Mon, 09 Jan 2023 at 15:52, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
> It wouldn't change; patman would be hinted at briefly with a reference
> to its documentation (info '(u-boot) Patman patch manager' from the
> u-boot-documentation package) as a nice way to stay organize with
> submissions and automate a few things on top of git send-email.
Is it possible to read online patman documentation? I am not able to
find one. Moreover, it could ease the adoption if a minimal sample of
such configuration is provided. A minimal out of the box configuration
as starter.
On my side, if I have to do more than just click to read documentation,
then I give up. And then, if I have to parse lengthy documentation,
then it depends on my motivation but it is also possible that I give
up–the well-known RTFM trap. In other words, I am lazy. :-)
Cheers,
simon
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: bug#58813: can't substitute etc/teams.scm command as doc suggests
2023-01-11 15:20 ` Simon Tournier
@ 2023-01-12 3:00 ` Maxim Cournoyer
2023-01-12 13:31 ` Simon Tournier
0 siblings, 1 reply; 14+ messages in thread
From: Maxim Cournoyer @ 2023-01-12 3:00 UTC (permalink / raw)
To: Simon Tournier; +Cc: Ludovic Courtès, guix-devel, 58813
Hi Simon,
Simon Tournier <zimon.toutoune@gmail.com> writes:
> Hi,
>
> On Mon, 09 Jan 2023 at 15:52, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>
>> It wouldn't change; patman would be hinted at briefly with a reference
>> to its documentation (info '(u-boot) Patman patch manager' from the
>> u-boot-documentation package) as a nice way to stay organize with
>> submissions and automate a few things on top of git send-email.
>
> Is it possible to read online patman documentation? I am not able to
> find one.
It's developed as part of U-Boot and available at
https://u-boot.readthedocs.io/en/latest/develop/patman.html. It's
generated from the same sources as the info manual from
u-boot-documentation referenced above.
> Moreover, it could ease the adoption if a minimal sample of
> such configuration is provided. A minimal out of the box configuration
> as starter.
No configuration is required other than the .patman file already checked
in Guix.
> On my side, if I have to do more than just click to read documentation,
> then I give up. And then, if I have to parse lengthy documentation,
> then it depends on my motivation but it is also possible that I give
> up–the well-known RTFM trap. In other words, I am lazy. :-)
The 'Patman patch manager' section is relatively compact; I read it from
the comfort of Emacs ;-). There's also some alternative short text
available as 'patman -H' if you are in a hurry.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: bug#58813: can't substitute etc/teams.scm command as doc suggests
2023-01-12 3:00 ` Maxim Cournoyer
@ 2023-01-12 13:31 ` Simon Tournier
0 siblings, 0 replies; 14+ messages in thread
From: Simon Tournier @ 2023-01-12 13:31 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: Ludovic Courtès, guix-devel, 58813
Hi Maxim,
On mer., 11 janv. 2023 at 22:00, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
> It's developed as part of U-Boot and available at
> https://u-boot.readthedocs.io/en/latest/develop/patman.html. It's
> generated from the same sources as the info manual from
> u-boot-documentation referenced above.
Oh thanks! I do not know why I did not found it when using my favorite
search engine. :-)
>> On my side, if I have to do more than just click to read documentation,
>> then I give up. And then, if I have to parse lengthy documentation,
>> then it depends on my motivation but it is also possible that I give
>> up–the well-known RTFM trap. In other words, I am lazy. :-)
>
> The 'Patman patch manager' section is relatively compact; I read it from
> the comfort of Emacs ;-). There's also some alternative short text
> available as 'patman -H' if you are in a hurry.
Well, I still think that examples about how to use it are worth and will
help for adoption. :-)
For instance, this section of the manual [1] describes how to use
git-format-patch and git-send-email with details applied to Guix
examples. It appears to me better than just pointing [2] and [3]. ;-)
1: <https://guix.gnu.org/manual/devel/en/guix.html#Sending-a-Patch-Series>
2: <https://git-scm.com/docs/git-format-patch>
3: <https://git-scm.com/docs/git-send-email>
Cheers,
simon
^ permalink raw reply [flat|nested] 14+ messages in thread
* bug#58813: can't substitute etc/teams.scm command as doc suggests
2023-04-28 14:28 ` Josselin Poiret via Bug reports for GNU Guix
@ 2023-05-01 16:38 ` Maxim Cournoyer
0 siblings, 0 replies; 14+ messages in thread
From: Maxim Cournoyer @ 2023-05-01 16:38 UTC (permalink / raw)
To: Josselin Poiret; +Cc: ludo, liliana.prikler, 58813-done, zimon.toutoune
Hi,
Josselin Poiret <dev@jpoiret.xyz> writes:
> Hi Maxim,
>
> Only seeing this patchset now, but it seems great!
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>
>> +[commit]
>> + gpgsign = true
>> +
>> [diff "scheme"]
>> xfuncname = "^(\\(define.*)$"
>>
>> [diff "texinfo"]
>> xfuncname = "^@node[[:space:]]+([^,]+).*$"
>> +
>> +[format]
>> + useAutoBase = true
>> + thread = shallow
>> +
>> +[pull]
>> + rebase = true
>> +
>> +[sendemail]
>> + to = guix-patches@gnu.org
>> + headerCmd = etc/teams.scm cc-members-header-cmd
>> + thread = no
>
> Could we also consider adding format.forceinbodyfrom=true, so that
> contributors whose From: gets rewritten by debbugs/mailman still have
> the proper attribution without requiring manual action from committers?
Seems reasonable. I've added it in, and have now pushed the series.
The upstream git commit hasn't been merged yet, but I've addressed all
their comments, and will continue doing so.
Closing, finally :-). I'll push an associated news entry shortly.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2023-05-01 16:39 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-03 22:29 Bogus ‘etc/teams.scm’ usage recommendations? Ludovic Courtès
2023-01-05 12:21 ` Simon Tournier
2023-01-05 17:03 ` bug#58813: " Maxim Cournoyer
2023-01-09 17:23 ` bug#58813: can't substitute etc/teams.scm command as doc suggests Ludovic Courtès
2023-01-09 20:52 ` Maxim Cournoyer
2023-01-11 15:20 ` Simon Tournier
2023-01-12 3:00 ` Maxim Cournoyer
2023-01-12 13:31 ` Simon Tournier
2023-01-05 17:03 ` Bogus ‘etc/teams.scm’ usage recommendations? Maxim Cournoyer
-- strict thread matches above, loose matches on Subject: below --
2023-04-23 17:03 bug#58813: [PATCH 3/5] teams: Add a configure-git action Liliana Marie Prikler
2023-04-24 2:29 ` bug#58813: [PATCH v2 3/5] Makefile.am: Auto-configure Git on 'make' Maxim Cournoyer
2023-04-28 14:28 ` Josselin Poiret via Bug reports for GNU Guix
2023-05-01 16:38 ` bug#58813: can't substitute etc/teams.scm command as doc suggests Maxim Cournoyer
2022-10-27 3:50 Maxim Cournoyer
2022-10-27 6:08 ` Liliana Marie Prikler
2022-10-27 12:40 ` Maxim Cournoyer
2022-10-27 16:27 ` Liliana Marie Prikler
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.