Thread (10 messages) flat view 10 messages, 8 authors, 2016-06-15

Re: Does GIT has vc keywords like CVS/Subversion?

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:43

Hi,

On Tue, 10 Oct 2006, Martin Langhoff wrote:
On 10/10/06, Linus Torvalds [off-list ref] wrote:
quoted
 - outside of the SCM, keyword substitution can make sense, but doing it
   should be in helper scripts or something that can easily tailor it for
   the actual need of that particular project.
... like a pre-commit hook.
If we have a tool that I can pass a file or a directory tree and will 
find the (perfectly|closely) matching trees and related commits.

For the single file case, searching for an exact SHA1 match is easy,
as is by path.
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help