News for hackers. Stuff that matters.
Re:The Sourcehut Project Hub by umvi on Friday May 01, 2020 @12:56AM (#23039263)
A branch is more accurately a text pointer pointing to a single commit
Re:The Sourcehut Project Hub by TeMPOraL on Friday May 01, 2020 @04:09AM (#23040057)
And this is a crucial point. To understand git, you need to understand data structures strung from pointers. Branch then being a [pointer to a] single commit makes perfect sense, just like a linked list being a pointer to the first element makes perfect sense.
Re:The Sourcehut Project Hub by rswail on Friday May 01, 2020 @06:34AM (#23040745)
You could even call it a "reference", or a "ref" for short :)