Re: About GIT Internals
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 3, 2022, 17:15 UTC
- Message-ID
- <xmqqk09xhdma.fsf@gitster.g>
- In-Reply-To
- <CAJoAoZmPOOp41KF=V4EhUopu+P8=UW55bkUJm6ZYiKziprtWug@mail.gmail.com>
Emily Shaffer <emilyshaffer@google.com> writes:
>> 3. Would someone advise, perhaps, to have a look at an older version >> of the source code? rather than the latest one, for some reason.
For those who want to learn from source files, I would recommend reading all the files in the very initial commit, cover to cover.
e83c5163 (Initial revision of "git", the information manager from hell, 2005-04-07)
With only 1244 lines spread across 11 files, it is a short-read that is completable in a single sitting for those who are reasonably fluent in C. It does not have any frills, but the basic data structures to express the important concepts are already there.