1
Loserzhu Oct 10, 2020
一种错觉,最近好多文章都在写 git 第一版源码。
第一个是看的阿里技术发的文,然后就铺天盖地的 git 第一版。 |
2
tao1991123 Oct 10, 2020
git 的第一行代码 怎么会使用 git 进行管理呢?
|
3
luassuns Oct 10, 2020 via Android
@tao1991123 #2 写完第一版后,再一把 commit 就行了呀
|
5
codehz Oct 10, 2020
然后这玩意被刷了几百条评论
|
6
littlewing Oct 10, 2020 via iPhone
@tao1991123 你这个问题类似于怎么用 go 写 go
|
7
qwerthhusn Oct 10, 2020
鸡与蛋
|
8
la2la Oct 10, 2020 软件更重要是的思路吧,感觉应该把 70%以上的时间放在构建思路上面,而不是实现代码。hadoop 第一版的代码也没有什么高端的操作,但是 map-reduce 的思想有几个能够提出来
|
9
jdhao Oct 10, 2020
事后诸葛亮,如果有人能写,早写出来了,不用等到 Linus 2005 写出来。
|
10
huoru Oct 10, 2020
git 实现本来就不难,设计做的比较好。我之前就写过了: https://v2ex.com/t/674356#reply3
|
11
huoru Oct 10, 2020
@littlewing 术语叫自举。
|
12
masker Oct 10, 2020 via Android
马后炮 ,事后诸葛亮挺多的
|
13
BenX Oct 10, 2020
呵呵呵,Linux kernel 0.01 也就那样哇
|
14
shm7 Oct 11, 2020
@ChristopherWu 流皮。
|
15
liangch Oct 11, 2020
最早的编译器怎么来的。就是这么来的。
|
16
zjsxwc Oct 12, 2020
This is a stupid (but extremely fast) directory content manager. It
doesn't do a whole lot, but what it _does_ do is track directory contents efficiently. There are two object abstractions: the "object database", and the "current directory cache". The Object Database (SHA1_FILE_DIRECTORY) The object database is literally just a content-addressable collection of objects. All objects are named by their content, which is approximated by the SHA1 hash of the object itself. Objects may refer to other objects (by referencing their SHA1 hash), and so you can build up a hierarchy of objects. |