public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Reviewing ebuilds with git
Date: Sun, 30 Jun 2024 23:18:46 +0400	[thread overview]
Message-ID: <d7b96996-475e-41c4-aee1-be8ae1aedfc5@ya.ru> (raw)
In-Reply-To: <87r0cepbzs.fsf@gentoo.org>

Should this patch be added to git ebuild patch folder, with a new USE flag?

On 6/30/24 21:38, Sam James wrote:
> Hi,
>
> I've mentioned this on IRC a bunch of times to people but I figure I'll
> mention it here in case anyone finds it useful.
>
> Our use of git doesn't lend itself well to the default mode `git diff`
> and friends operate in, as we create many new files rather than solely
> changing existing ones.
>
> git can be coerced into checking for copies (and doing so "harder" too)
> but there's no configuration option for this, and it's a pain to
> remember.
>
> You can use the attached patch for dev-vcs/git and then set:
> $ git config diff.renames copies-harder
> in gentoo.git to make `git log -p`, `git diff`, etc default to this
> mode.
>
> IME, it makes reviewing much easier. Be warned that it does make git log
> a bit slower though if the config option is enabled for a repo -- but
> maybe only noticeably if your repo is grafted with the pre-2015 CVS history.
>
>
> thanks,
> sam
>


  parent reply	other threads:[~2024-06-30 19:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-30 17:38 [gentoo-dev] Reviewing ebuilds with git Sam James
2024-06-30 18:21 ` Eli Schwartz
2024-06-30 19:18 ` Vitaly Zdanevich [this message]
2024-06-30 19:49   ` Martin Dummer
2024-07-01  6:25 ` Jaco Kroon

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=d7b96996-475e-41c4-aee1-be8ae1aedfc5@ya.ru \
    --to=zdanevich.vitaly@ya.ru \
    --cc=gentoo-dev@lists.gentoo.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