Re: RCS keyword expansion

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sam Vilain
Date: Thursday, October 11, 2007 - 2:20 pm

Peter Karlsson wrote:

The problem is that asking for the "last commit that changed a file" is
one of those features which comes out of the wash with proper merge
support.  There is often no clear answer to that question.

Here's an example.  Say two people apply a patch on their own branches,
which are subsequently merged.  The file was the same on both branches;
the commits may have exactly the same date, but different committers.

Now, consider what happens as you are switching branches.  Instead of
just being able to check the file identity in the tree, the system has
to somehow know that the (derived) ancestry of the file is different,
and now the content has to change.  That makes something that was
extremely fast, slow.

It's the sort of thing that's possible to arrange to work using hooks
(with whatever arbitrary decisions you choose to make for the areas
where it would be ambiguous), but no-one bothered because people
realised that it probably means you're trying to encapsulate the
information in the wrong place.

Sam.
-
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:
RCS keyword expansion, Peter Karlsson, (Thu Oct 11, 7:47 am)
Re: RCS keyword expansion, Johannes Sixt, (Thu Oct 11, 8:02 am)
Re: RCS keyword expansion, Randal L. Schwartz, (Thu Oct 11, 8:09 am)
Re: RCS keyword expansion, Oliver Kullmann, (Thu Oct 11, 8:59 am)
Re: RCS keyword expansion, Peter Karlsson, (Thu Oct 11, 10:55 am)
Re: RCS keyword expansion, Alex Riesen, (Thu Oct 11, 11:09 am)
Re: RCS keyword expansion, Lars Hjemli, (Thu Oct 11, 12:16 pm)
Re: RCS keyword expansion, Alex Riesen, (Thu Oct 11, 12:21 pm)
Re: RCS keyword expansion, Johannes Schindelin, (Thu Oct 11, 1:47 pm)
Re: RCS keyword expansion, Sam Vilain, (Thu Oct 11, 2:20 pm)
Re: RCS keyword expansion, Sam Vilain, (Thu Oct 11, 2:35 pm)
Re: RCS keyword expansion, Peter Karlsson, (Thu Oct 11, 10:26 pm)
Re: RCS keyword expansion, Peter Karlsson, (Thu Oct 11, 10:27 pm)
Re: RCS keyword expansion, Johannes Schindelin, (Fri Oct 12, 3:02 am)
Re: RCS keyword expansion, Peter Karlsson, (Fri Oct 12, 3:50 am)
Re: RCS keyword expansion, Johannes Sixt, (Fri Oct 12, 4:05 am)
Re: RCS keyword expansion, Lars Hjemli, (Fri Oct 12, 4:21 am)
Re: RCS keyword expansion, Johannes Schindelin, (Fri Oct 12, 4:34 am)
Re: RCS keyword expansion, Jan Hudec, (Fri Oct 12, 5:57 am)
Re: RCS keyword expansion, Salikh Zakirov, (Fri Oct 12, 12:08 pm)
Re: RCS keyword expansion, Johannes Schindelin, (Fri Oct 12, 3:42 pm)
Re: RCS keyword expansion, Zakirov Salikh, (Fri Oct 12, 4:52 pm)
Re: RCS keyword expansion, Peter Karlsson, (Mon Oct 15, 7:03 am)
Re: RCS keyword expansion, Johannes Schindelin, (Mon Oct 15, 7:28 am)