Re: [PATCH] read-tree A B C: do not create a bogus index and do not segfault

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Thursday, March 12, 2009 - 9:34 am

On Thu, 12 Mar 2009, Daniel Barkalow wrote:

That is very thoughtful of you, but I suspect the real reason was a much 
simpler one: redoing the read-tree logic was a huge pain in the posterior, 
and my primary goal at the time was to make the code more readable while 
passing all the tests.

So while I tried to make patches minimal (which may well explain why the 
flag remained), it wasn't the main goal, and trying to sort out the 
read-tree logic into something more understandable was quite test-driven.

So I think the big issue to take away from this is that I think this is 
such an odd case that if we want to support it, it would need explicit 
tests. Or:


Hmm. It _has_ been used. It's been useful for really odd things 
historically, namely trying to merge different trees by hand. So while I 
agree that we could probably remove it, it _is_ a very interesting 
feature in theory, and since we have the code.. 

So I'd say "add a few tests for the known horrible cases" should be the 
first approach. If it ever actually breaks again and becomes a big 
maintenance headache, maybe _then_ remove the feature as not being worth 
the pain?

			Linus
--
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:
[BUG] - git-read-tree segfaults, Jiri Olsa, (Tue Mar 10, 12:34 pm)
Re: [BUG] - git-read-tree segfaults, Johannes Schindelin, (Tue Mar 10, 12:50 pm)
Re: [BUG] - git-read-tree segfaults, Johannes Schindelin, (Tue Mar 10, 1:21 pm)
Re: [BUG] - git-read-tree segfaults, Jiri Olsa, (Wed Mar 11, 12:59 am)
Re: [BUG] - git-read-tree segfaults, Johannes Schindelin, (Wed Mar 11, 5:04 am)
Re: [BUG] - git-read-tree segfaults, Junio C Hamano, (Wed Mar 11, 10:57 pm)
Re: [BUG] - git-read-tree segfaults, Junio C Hamano, (Thu Mar 12, 12:01 am)
Re: [PATCH] read-tree A B C: do not create a bogus index a ..., Linus Torvalds, (Thu Mar 12, 9:34 am)