git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Philip <philip.c.peterson@gmail.com>
To: git@vger.kernel.org
Subject: Pre-computed similarity indexes
Date: Sun, 24 Jul 2022 10:23:41 -0400	[thread overview]
Message-ID: <CAJ6X7_UNOMusKKbFzS12DRhrOkVXAEgED8djA2kxjfFmbv4GwA@mail.gmail.com> (raw)

Hello all,

I noticed that Git LFS-tracked files cannot correctly detect renames,
probably because Git is not doing a similarity check on the content.
Doing so would require having the content (instead of just the LFS
pointer), and that would require running the smudge filter, which
could take a very long time due to network requests, very expensive if
done on every file in the repo. When doing a `git log` for example, it
would need to run the smudge filter on all LFS files in all revisions,
potentially pulling down all the content from the LFS server, just to
decide if there were any renames.

I wonder if there has been any thought given to whether a similarity
index can be pre-computed somewhere? (Maybe upon commit with each of
the commit's ancestors.) Or if this limitation has been discussed
before here.

Thank you,
Philip Peterson

             reply	other threads:[~2022-07-24 14:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-24 14:23 Philip [this message]
2022-07-26  7:27 ` Pre-computed similarity indexes Elijah Newren

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=CAJ6X7_UNOMusKKbFzS12DRhrOkVXAEgED8djA2kxjfFmbv4GwA@mail.gmail.com \
    --to=philip.c.peterson@gmail.com \
    --cc=git@vger.kernel.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.
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).