Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Simon Marchi <simon.marchi@polymtl.ca>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/testsuite: fix a few typos
Date: Tue, 2 Dec 2025 09:07:36 +0100	[thread overview]
Message-ID: <f7d04895-4fb3-4074-87f7-fdb39cfc5bba@suse.de> (raw)
In-Reply-To: <cef590b0-5184-4a9a-a194-37eb56326b0a@polymtl.ca>

On 12/1/25 6:37 PM, Simon Marchi wrote:
> 
> 
> On 2025-12-01 12:27, Tom de Vries wrote:
>> On 12/1/25 6:16 PM, Simon Marchi wrote:
>>> On 2025-12-01 12:12, Tom de Vries wrote:
>>>> Interesting.
>>>>
>>>> I wonder if that will still work with my proposal for moving the
>>>> commit-log check from the commit-msg to the post-commit stage (
>>>> https://sourceware.org/pipermail/gdb-patches/2025-December/223036.html
>>>> ), in which case the commit message is produced by a wrapper script,
>>>> and not by git as is the case for the commit-msg stage.
>>>
>>> Depends, what do you mean by "will still work"?
>>
>> Well, in the commit-msg stage, git will provide a file to the pre-commit hook containing the commit message.
>>
>> In the post-commit stage, git doesn't provide such a file, and the pre-commit calls a wrapper script which call git to generate the commit message.  So my question is whether the alias (shell alias or git alias?) will be active in this scenario or not.
> 
> It's still not clear to me which part you wonder will still work.  The
> part where codespell checks the patch diff that happened to be in my
> editor?

Yes.

>  If so, it's not a problem, it wasn't intended to work this way
> anyway.
> 

Right, but since you mentioned it, it could have been something you 
started to rely on.

I was wondering if we should make it work, running codespell on commits, 
while we don't have a clean state to run it on all files.  But I'm not 
sure yet if it's worth the effort.

> They are shell aliases:
> 
> $ alias gc gc!
> gc='git commit --verbose'
> 'gc!'='git commit --verbose --amend'
> 

I see, those won't interfere with calling git show, it's clear to me now.

Thanks,
- Tom

> from oh-my-zsh:
> 
> https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git
> 
> You can define the same aliases if you want to try it yourself.
> 
> Simon


      reply	other threads:[~2025-12-02  8:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-24 21:54 simon.marchi
2025-11-28 10:19 ` Tom de Vries
2025-11-28 15:40   ` Simon Marchi
2025-12-01 17:12     ` Tom de Vries
2025-12-01 17:16       ` Simon Marchi
2025-12-01 17:27         ` Tom de Vries
2025-12-01 17:37           ` Simon Marchi
2025-12-02  8:07             ` Tom de Vries [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

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

  git send-email \
    --in-reply-to=f7d04895-4fb3-4074-87f7-fdb39cfc5bba@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@polymtl.ca \
    /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