News for hackers. Stuff that matters.
Re:Things I wish everyone knew about Git (Part I) by mjd on Wednesday June 29, 2022 @07:04PM (#31926817)
I don't think there is a precise rule. because the exact meaning depends on the context. In part 3 of the series, in the section about "branches are fictitious", that's what I will say.

The talk has an abbreviated version: https://perl.plover.com/classes/git-tips/samples/slide018.ht... It's an illustration of just one example of this: If we rebase "branch X" onto commit B, we rebase only the three green commits. But if we rebase it onto C, we consider X to contain the two dark blue commits also.

Are the dark blue commits part of branch X? It depends on what you're trying to communicate.

Re:Things I wish everyone knew about Git (Part I) by layer8 on Wednesday June 29, 2022 @09:54PM (#31927927)
Right, and that’s what makes “branch” a vague notion in git. It’s not clear what exactly is meant with “branch x” when it’s not just about the labeled tip, and often enough no further clarification is given.