未来のいつか/hyoshiokの日記

hyoshiokの日々思うことをあれやこれや

Linusが2週間でgitを作った話。


LinuxgitLinus - /hyoshiok - LinuxgitLinus - /hyoshiok
Linusgit2

git
$ git clone https://github.com/git/git

2

10
$ git log --oneline|tail
9426167 Add "-lz" to link line to get in zlib.
7660a18 Add new fsck-cache to Makefile.
2022211 Add first cut at "fsck-cache" that validates the SHA1 object store.
2ade934 Add "check_sha1_signature()" helper function
24778e3 Factor out "read_sha1_file" into mapping/inflating/unmapping.
19b2860 Use "-Wall -O2" for the compiler to get more warnings.
bf0c6e8 Make "cat-file" output the file contents to stdout.
e497ea2 Make read-tree actually unpack the whole tree.
8bc9a0c Add copyright notices.
e83c516 Initial revision of "git", the information manager from hell

16sha-17
e83c516 Initial revision of "git", the information manager from hell


sha-1gite83c5163316f89bfbde7d9ab23ca2e25604af290git

e83c516
$ git log e83c516
commit e83c5163316f89bfbde7d9ab23ca2e25604af290
Author: Linus Torvalds <torvalds@ppc970.osdl.org>
Date:   Thu Apr 7 15:13:13 2005 -0700

    Initial revision of "git", the information manager from hell

200547

Linux
$ git clone http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

20clone
$ git log --oneline | tail
e493073 [PATCH] Fix acl Oops
81ddef7 [PATCH] re-export cancel_rearming_delayed_workqueue
9ffb714 [PATCH] crypto: call zlib end functions on deflate exit path
d42ce81 [PATCH] arm: add comment about max_low_pfn/max_pfn
7a228aa [PATCH] arm: add comment about dma_supported()
7aa52f5 [PATCH] arm: fix help text for ixdp465
2d137c2 [PATCH] arm: fix SIGBUS handling
baaa2c5 [PATCH] Avoid deadlock in sync_page_io by using GFP_NOIO
8d38ead [PATCH] mmtimer build fix
1da177e Linux-2.6.12-rc2

gitlinux1da177e Linux-2.6.12-rc2
$ git log 1da177e
commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Author: Linus Torvalds <torvalds@ppc970.osdl.org>
Date:   Sat Apr 16 15:20:36 2005 -0700

    Linux-2.6.12-rc2
    
    Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.
    
    Let it rip!

416linux

'Re: Trivia: When did git self-host?' - MARC

The first version of git was just ~1300 lines of code, and I have reason 
to believe that I started it at or around April 3rd. The reason: I made 
the last BK release on that day, and I also remember aiming for having 
something usable in two weeks. 

git130043BK
And hosting git itself was not that important for me - hosting the kernel 
was. And the first kernel commit was April 16 (with the first merges being 
a few days later). Which meshes with my "two week goal" recollection.

gitgit repository4162

4347416linux2git

linux
$ git log --oneline | wc -l
456538

45
Linus