From: Junio C Hamano <gitster@pobox.com>
To: Elijah Newren <newren@gmail.com>
Cc: Philip Oakley <philipoakley@iee.email>,
Jeremy Pridmore <jpridmore@rdt.co.uk>,
"git@vger.kernel.org" <git@vger.kernel.org>,
Paul Baumgartner <pbaumgartner@rdt.co.uk>
Subject: Re: Git Rename Detection Bug
Date: Mon, 13 Nov 2023 08:09:53 +0900 [thread overview]
Message-ID: <xmqqzfzimuv2.fsf@gitster.g> (raw)
In-Reply-To: <CABPp-BEtva2WTGQG3Qs4EbZLK_RJC9vuA-2OYxkTPExgowwvqQ@mail.gmail.com> (Elijah Newren's message of "Sat, 11 Nov 2023 07:13:28 -0800")
Elijah Newren <newren@gmail.com> writes:
>> Could I suggest that we are missing a piece of terminology, to wit,
>> BLOBSAME. It's a compatriot to TREESAME, as used in `git log` for
>> history simplification (based on a tree's pathspec, most commonly a
>> commit's top level path).
>
> We could add it, but I'm not sure how it helps. We already had 'exact
> rename' which seems to fit the bill as well, and 'blob' is something
> someone new to Git is unlikely to know.
Also, as Philip said, TREESAME is a concept foreign to rename
detection codepath. It is a property of a commit (not a tree) and
tells us if it has the same tree object as its relevant parents (in
which case it can be simplified away if it is a merge). I do not
mind rename codepath using a jargon (or two) to express "in trees A
and B, this subtree of A records the same tree object as a subtree
of B at a different path (i.e., the contents of these two subtrees
at different paths are the same)" but the word used to express that
should not be TREESAME to avoid confusion. And the other word to
express "this path in tree A records a blob object that is identical
to this other path in tree B" should not be BLOBSAME, as the word
strongly hints it is somehow related to TREESAME.
Thanks.
next prev parent reply other threads:[~2023-11-12 23:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-06 12:00 Git Rename Detection Bug Jeremy Pridmore
2023-11-07 8:05 ` Elijah Newren
2023-11-10 11:28 ` Jeremy Pridmore
2023-11-11 5:46 ` Elijah Newren
2023-11-11 11:08 ` Philip Oakley
2023-11-11 15:13 ` Elijah Newren
2023-11-12 23:09 ` Junio C Hamano [this message]
2023-11-15 15:35 ` Philip Oakley
2023-11-15 14:36 ` Philip Oakley
2023-11-16 6:26 ` Elijah Newren
2023-11-15 16:51 ` Philip Oakley
2023-12-24 7:46 ` Elijah Newren
2023-12-28 15:33 ` Philip Oakley
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=xmqqzfzimuv2.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jpridmore@rdt.co.uk \
--cc=newren@gmail.com \
--cc=pbaumgartner@rdt.co.uk \
--cc=philipoakley@iee.email \
/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).