Konstantin Ryabitsev <[email protected]> wrote:
> On Tue, Oct 01, 2019 at 03:37:47AM +0000, Eric Wong wrote:
> > +* support searching based on `git-patch-id --stable` to improve
> > +  bidirectional mapping of commits <=> emails
> 
> It would be handy, but a word of caution -- because it strips
> whitespace, git-patch-id is not great for languages with syntactic
> indentation, like Python. For example, the following two patches
> generate the same patch-id, but one is actually malicious:

Good point.  Makefiles also fall into that category, I wonder
what other languages are whitespace sensitive?

<snip>

> So, I wouldn't use git-patch-id as a mechanism to look up patches,
> except as an auxiliary one.

It's usable for 99% of patches for the kernel, though.  But
right, dfpost:$BLOB_ID matches should take precedence, and we
can use a lower weight for the patch-id in Xapian

The bigger question is the cost in time to reindex...

And ultimately, I wonder if dfpost:$BLOB_ID + s:$COMMIT_TITLE
is good enough, too...  I think I need to dig out something
I abandoned years ago for indexing coderepos and refactor that
to be less space-intensive now.
--
unsubscribe: [email protected]
archive: https://public-inbox.org/meta/

Reply via email to