From: Linus Torvalds Date: Tue, 20 Sep 2005 00:50:21 GMT Subject: Re: Joining cg-*-id Message-ID: In-Reply-To: <20050919225422.GG18320@pasky.or.cz> On Tue, 20 Sep 2005, Petr Baudis wrote: > > Currently, in Cogito it is basically: > > git-rev-list --min-age="$(date --date=$id +%s)" --max-count=1 HEAD Yes, for git-rev-list it makes sense, because that already more or less "serializes" things by date. > But that semantics sucks, and I wouldn't mind changing it at all. I > think taking the previous commit works for everything but the start of > cg-log range, and it is how CVS behaves. The thing is, it may have sensible behaviour for CVS, but only because CVS doesn't have any notion of concurrent development (even a branch isn't concurrent - it's totally separate, and when you merge it, it becomes just one big diff at the time of the merge). So I'd love to have git diff yesterday.. but the fact is, there's no sensible semantics for it. _which_ yesterday? There might be five different points that are "close to 24 hours ago", along five different paths backwards in the history. I suspect that the date-based thing really doesn't make sense as a revision, only as a git log cut-off (ie the "--min-age=" flag is as close to sensibility as you can get). Linus