Re: gitweb wishlist
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- May 24, 2005, 20:44 UTC
- Message-ID
- <Pine.LNX.4.58.0505241334530.2307@ppc970.osdl.org>
- In-Reply-To
- <42938C5B.4000906@cobite.com>
On Tue, 24 May 2005, David Mansfield wrote:
Show 10 quoted lines
> > Sounds possible. Unfortunately, the 'uniqueness' of a commit actually > doesn't exist. It's all smoke-and-mirrors. In order to disallow this > (which I think need to do) I'd need to use some commit member > information, and add some heuristic: if this file is already in the > commit, then this MUST be a different commit. Unfortunately, it's > possible that the 'member' already in the commit is the wrong one and > this is the right one, which just sounds horribly ugly to me. > > I'll think on it.
I think it's a fundamentally hard problem to fix, but it may be that the fix is to give hints about command line options and in particular the time fuzz thing to try.
So maybe just _detection_ logic in cvsps, along with a warning like
"time fuzz is 600 seconds, and the time difference between the two commits of this file was 431 seconds. You may want to try a lower -z argument"
or something.
It might also be possible to try to sort all the names by date of commit first, and see if they "bunch up" into groups of low fuzz with much bigger fuzz in between groups..
Linus