Make wording in refs.asc clearer #1583
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When reading this line I was very confused. It didn't sound like it made sense. So I checked out a remote ref, ran
cat .git/HEAD
, and lo and behold it did "point" to the same thing that the remote branch pointed to.I played around with it a little bit more and realized the difference between checking out a local and remote reference is that checking out a local reference sets
.git/HEAD
to a SYMBOLIC ref, while checking out a remote reference sets it to the exact commit.I think the current language is technically correct, because "Git won't point HEAD at one" means it won't point HEAD to the remote reference itself (since "one" means the remote reference, not the commit). So I'm not saying the current wording is bad, just that it confused me, so it might confuse others
Also, when you say "you'll never update it" and "read-only" of course you are referring to the remote reference, but a naive reader like myself may thing you're referring to HEAD. And if I checkout a remote reference then commit a change I will update HEAD
Changes
Context