by phaemon · 12y ago · 0 comments
There is no such thing as "an edited version" of a commit. A commit is identified by a SHA1 hash of its index of contents. If you change one bit you get a new commit.
You're a C programmer, right? If someone gave you a specification for writing a program to implement git, without telling your what it was, you'd tell them it would take 2 weeks. And that's because you'd reckon it would take 2 hours to knock out a rough version and a couple of days to clean it up.
Seriously, it's that simple. Just go learn how it works.
It's obvious what the answer is if you know how it works, so what was your point exactly?
There's a difference between "has no idea how it works" and "understands the overall structure but doesn't know every single detail".