git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] t/perf: rename duplicate-numbered test script
Date: Mon, 12 Aug 2019 12:13:52 -0400	[thread overview]
Message-ID: <20190812161352.GB25388@sigill.intra.peff.net> (raw)
In-Reply-To: <xmqqftm6bca3.fsf@gitster-ct.c.googlers.com>

On Mon, Aug 12, 2019 at 09:04:36AM -0700, Junio C Hamano wrote:

> >  t/perf/{p5600-clone-reference.sh => p5601-clone-reference.sh} | 0
> >  1 file changed, 0 insertions(+), 0 deletions(-)
> >  rename t/perf/{p5600-clone-reference.sh => p5601-clone-reference.sh} (100%)
> >
> > diff --git a/t/perf/p5600-clone-reference.sh b/t/perf/p5601-clone-reference.sh
> > similarity index 100%
> > rename from t/perf/p5600-clone-reference.sh
> > rename to t/perf/p5601-clone-reference.sh
> 
> By the way, do we feel differently (e.g. more risky) when we see
> 100% rename without the "index old-oid..new-oid mode" lines and when
> we see 99% rename with one, with a one-line change?

I saw that earlier message from Linus, too. :)

For a change like this, I don't think it matters either way. Whatever is
the content of that file, my intent is to move it to a new location. So
if you did have changes, moving them along with it would be the right
thing.

That said, I'm not at all opposed to having more data in the patch. Even
if the "apply" side doesn't do anything useful with the "index" line in
such a case, it's possible it could help with tracking down a mis-merge
or other confusion after the fact.

What I don't think we would want, though, is for a change on your side
to reject a patch like mine (a sort of "RENAME/MODIFY" conflict, I
guess, where "am" says "I can't move 1234abcd to this new filename,
because that's not what I have at that path"). Our merges are already
happy to port changes around when there's a rename on another branch,
and this case is no different.

-Peff

      reply	other threads:[~2019-08-12 16:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-12 15:58 [PATCH] t/perf: rename duplicate-numbered test script Jeff King
2019-08-12 16:04 ` Junio C Hamano
2019-08-12 16:13   ` Jeff King [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: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=20190812161352.GB25388@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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).