... like a pre-commit hook.
If you have the path, you can reuse the whole algorithm for finding the
best delta base.
However, if you do not have the path, you might as well just give up (if
there is no perfect match for the SHA1), since the SHA1 is _not_ similar
for similar contents. IOW, you'd literally have to search _all_ objects in
the repository, which usually takes a long, long time.
Ciao,
Dscho
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html