Re: Git commit generation numbers
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jul 15, 2011, 23:16 UTC
- Message-ID
- <CA+55aFwpVoqK7TaG0R3JJO07eOyWQ9pR1sHUGBQt0kmM0vk2bw@mail.gmail.com>
- In-Reply-To
- <CA+55aFzE-okH9gaEyuSFdorK-7v3odpsk65ZTqCMHFz80n65ug@mail.gmail.com>
On Fri, Jul 15, 2011 at 4:10 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote:
Show 6 quoted lines
> > Maybe there is something seriously wrong with this trivial patch, but > it gave the right results for the test-cases I threw at it, and passes > the tests. > > Before:
I have fewer branches than tags, but I get something similar for "git branch --contains":
[torvalds@i5 linux]$ time git branch --contains v2.6.12 | sha1sum 9d4224eec98ec7b0bcd5331dfa5badb9ef1fd510 -
real 0m4.205s user 0m4.112s sys 0m0.084s [torvalds@i5 linux]$ time ~/git/git branch --contains v2.6.12 | sha1sum 9d4224eec98ec7b0bcd5331dfa5badb9ef1fd510 -
real 0m0.112s user 0m0.100s sys 0m0.008s
ie identical results, except one took 4.2s and with the patch it took 0.1s.
This is all hot-cache, of course, and on a fast machine.
Linus