git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Henrique Soares <henriquegogo@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: How mantainers check Git diffs and patches?
Date: Wed, 01 Oct 2025 09:41:46 -0700	[thread overview]
Message-ID: <xmqqh5wi3779.fsf@gitster.g> (raw)
In-Reply-To: <aNygY8Cm7LEaBzV6@localhost> (Henrique Soares's message of "Wed, 1 Oct 2025 00:30:43 -0300")

Henrique Soares <henriquegogo@gmail.com> writes:

> This is a simple question I have related to the PR diff review process.
>
> How Git maintainers use to check diffs and review the code? I mean,
> sometimes I see that there are some large PATCHES that is hard or
> probably impossible to review only using e-mail client.
>
> Do you use some syntax highlight in client e-mail; any pipeline that
> automatically download e-mails and apply to a local branch; or for each
> PR you save the e-mail file then "git apply" to review / test the diff?
>
> This isn't a technical question, I'm just curious about how you do it.

Even a very small patch that applies a change to an early part of an
ultra-long function may be hard to assess depending on how far the
effect of that change gets propagated through the code flow to
affect the code near the bottom of the function.

Patches are medium for reliable transmission.  Once you apply the
patch to your tree (perhaps giving it its own topic branch, perhaps
to a detached HEAD with the full intention that you will discard it
after you are done inspecting the change the patch brings in), you
can use any regular tools you use while developing and reviewing
your own code.

  parent reply	other threads:[~2025-10-01 16:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-01  3:30 How mantainers check Git diffs and patches? Henrique Soares
2025-10-01  8:15 ` Kristoffer Haugsbakk
2025-10-01 21:12   ` Jeff King
2025-10-02  2:43   ` Henrique Soares
2025-10-01 13:37 ` Konstantin Ryabitsev
2025-10-02  2:59   ` Henrique Soares
2025-10-01 16:41 ` Junio C Hamano [this message]
2025-10-02  2:51   ` Henrique Soares
2025-10-02  5:19     ` Junio C Hamano

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=xmqqh5wi3779.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=henriquegogo@gmail.com \
    /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 NNTP newsgroup(s).