login
Header Space

 
 

Re: More precise tag following

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Simon 'corecode' Schubert <corecode@...>
Cc: Shawn O. Pearce <spearce@...>, Junio C Hamano <junkio@...>, <git@...>
Date: Saturday, January 27, 2007 - 12:46 pm

Hi,

On Sat, 27 Jan 2007, Simon 'corecode' Schubert wrote:


Ah, I think you fall in the "files matter" trap.

My point is: for what git does it does not need information which might or 
might not be present, but it derives that information which was there from 
the beginning: the ancestry path.

Many people don't use or even need blame. And what you want to introduce 
would affect them, too.

That is why I proposed a cache (of precomputed data): you don't have to 
change _anything_ in the file format, but you can speed the processes up 
-- locally! -- if they matter to you.

Which means it works on old repositories, too.


But can hg do it that fast, if you track code _movement_ between files? I 
doubt so.

I don't know if git can, at the moment, but even if it cannot, in future 
versions this may well be possible, exactly because we do _not_ rely on 
metadata to be stored in the objects, which can be derived from the 
history as-is anyway.


You can name it "Dirty Harry" if you want.

The important part is that you should not change the file format when you 
do not have to.

Rather, calculate the information you need from the existing data, and if 
you can reuse it, store it locally. _That_ is flexibility.

It also gives me a warm fuzzy feeling that no bogus "auxillary 
information" can be introduced by fetching from somewhere else. (It does 
not matter if intended or unintended.)

And if something is wrong with that "auxillary information", it can be 
regenerated correctly, without touching the real data -- the commit 
ancestry.

Just think of .git/info/refs: this data is derived from the repository, 
but because you need it so often (or it would be prohibitively expensive 
to do otherwise), it is derived only when needed, then stored, and 
retrieved quite often.


My point was that you want to introduce a reverse mapping onto the history 
DAG. But this claims that there is only one history you can possibly look 
at. This assumption is wrong.

It can make a lot of sense to git-blame a change on a pull, maybe because 
you don't want to fix it yourself, but throw it all back to the lieutnant 
whom you pulled that part from.

You could find that pull (in theory; I don't think it works right now) 
with git-blame walking the _reflogs_ instead of the _commit history_.

In this case, your reverse mapping would be wrong.

See?

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
More precise tag following, Junio C Hamano, (Fri Jan 26, 7:07 am)
Re: More precise tag following, Shawn O. Pearce, (Sat Jan 27, 4:01 am)
Re: More precise tag following, Linus Torvalds, (Sat Jan 27, 1:22 pm)
Re: More precise tag following, Shawn O. Pearce, (Sun Jan 28, 3:40 am)
Re: More precise tag following, Jeff King, (Sat Jan 27, 4:16 pm)
Re: More precise tag following, Linus Torvalds, (Sat Jan 27, 6:39 pm)
Re: More precise tag following, Jeff King, (Sat Jan 27, 7:52 pm)
Re: More precise tag following, Theodore Tso, (Sat Jan 27, 10:39 pm)
Re: More precise tag following, Jeff King, (Sun Jan 28, 9:15 am)
Re: More precise tag following, Randal L. Schwartz, (Sat Jan 27, 11:17 pm)
Re: More precise tag following, Simon 'corecode' Schubert..., (Sat Jan 27, 2:40 pm)
Re: More precise tag following, Linus Torvalds, (Sat Jan 27, 3:15 pm)
Re: More precise tag following, Chris Lee, (Sat Jan 27, 3:36 pm)
Re: More precise tag following, Eric Wong, (Mon Jan 29, 7:00 pm)
Re: More precise tag following, Eric Wong, (Mon Jan 29, 8:42 pm)
Re: More precise tag following, Eric Wong, (Tue Jan 30, 4:51 am)
Re: More precise tag following, Eric Wong, (Mon Jan 29, 8:48 pm)
Re: More precise tag following, David Lang, (Sun Jan 28, 6:26 pm)
Re: More precise tag following, Nicolas Pitre, (Mon Jan 29, 1:34 pm)
Re: More precise tag following, Linus Torvalds, (Mon Jan 29, 1:42 pm)
Re: More precise tag following, Nicolas Pitre, (Mon Jan 29, 1:58 pm)
Re: More precise tag following, Chris Lee, (Mon Jan 29, 3:16 pm)
Re: More precise tag following, Theodore Tso, (Sun Jan 28, 2:10 pm)
Re: More precise tag following, Linus Torvalds, (Sun Jan 28, 2:27 pm)
Re: More precise tag following, Linus Torvalds, (Sat Jan 27, 3:25 pm)
Re: More precise tag following, Johannes Schindelin, (Sat Jan 27, 3:02 pm)
Re: More precise tag following, Simon 'corecode' Schubert..., (Sat Jan 27, 3:12 pm)
Re: More precise tag following, Johannes Schindelin, (Sat Jan 27, 3:19 pm)
Re: More precise tag following, Linus Torvalds, (Sat Jan 27, 1:56 pm)
Re: More precise tag following, Johannes Schindelin, (Sat Jan 27, 8:58 am)
Re: More precise tag following, Simon 'corecode' Schubert..., (Sat Jan 27, 9:50 am)
Re: More precise tag following, Johannes Schindelin, (Sat Jan 27, 12:46 pm)
Re: More precise tag following, Simon 'corecode' Schubert..., (Sat Jan 27, 1:12 pm)
Re: More precise tag following, Nicolas Pitre, (Sat Jan 27, 3:41 pm)
Re: More precise tag following, Johannes Schindelin, (Sat Jan 27, 3:13 pm)
Re: More precise tag following, Simon 'corecode' Schubert..., (Sat Jan 27, 3:55 pm)
Re: More precise tag following, Simon 'corecode' Schubert..., (Sat Jan 27, 5:04 am)
Re: More precise tag following, Junio C Hamano, (Sat Jan 27, 4:41 am)
Re: More precise tag following, Nicolas Pitre, (Sat Jan 27, 1:47 pm)
Re: More precise tag following, Jeff King, (Sat Jan 27, 9:33 am)
Re: More precise tag following, Junio C Hamano, (Fri Jan 26, 7:53 am)
speck-geostationary