main.js: Separate HEAD from BRANCHES
Since HEAD will be our 'starting branch', let's special-case it, so we can just iterate over BRANCHES without needing to pull out HEAD first. Technically, HEAD doesn't need to point to a branch, but since we're only creating a prototype, we won't cover special cases like detached HEADs.
Loading
Please register or sign in to comment