Re: Using Origin hashes to improve rebase behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff King <peff@xxxxxxxx> writes:

> Exactly. One other possible solution to this problem would be to somehow
> make patch-ids handle fuzzy situations better. I doubt it is possible to
> do that without introducing a lot of false positives, though.

We need to remember that we would want to tolerate _no_ false positive.

We try hard to err on the safer side and leave the hard case to the users
for a reason.  A tool that records correct results 99.9% of the time but
produces wrong results for the rest of the time _silently_ is a tool that
cannot be trusted, and forces the user to inspect its output carefully to
make sure it is correct, not just for the 0.1% cases but for all of them.

Among the many automation support facilities we have gained over time, the
three-way merge, recursive merge to come up with a synthetic merge base
tree, detecting change similarity with patch-id, and detecting renames by
content inspection all proved themselves to be reasonably trustworthy
without false positives, even though they sometimes fail with false
negatives and they do so rather loudly by failing.  I find the heuristics
in rerere is trustable most of the time but I still do not completely
trust it myself.

Patching with fuzz and a user declaration that "this change came from
that", especially if the user can declare the correspondence even when
conflict resolution is involved during the porting of changes from totally
different context, fall into a different, a lot less trustworthy, basket.
It needs to start from totally trivial cases and punt _loudly_ when there
is any doubt.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]