doc clarification

This commit is contained in:
Joey Hess 2019-04-09 11:38:11 -04:00
parent 8191095bce
commit f40edb680c
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,19 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2019-04-09T15:16:12Z"
content="""
Each - is matched against the set of refs accu
mulated so far. Any matching refs are removed
from the set.
It matches against the literal text of the ref that was added, so if you
use "+*", it adds refs/heads/master, and then to remove that, you need
"-refs/heads/master" not "-master". On the other hand, "+master:-master"
results in "master" being added and then removed.
Clarified to mention that it matches by name; I suppose perhaps you were
thinking it matches based on what sha1 the ref name resolves to. The reason it
doesn't do that is that it would be surprising for "+foo:-master" to not include
ref foo just because it happens to currently have the same sha1 as master does.
"""]]

View file

@ -64,7 +64,7 @@ Each + without a glob adds the literal value to the set.
For example, "+HEAD^" adds "HEAD^".
Each - is matched against the set of refs accumulated so far.
Any matching refs are removed from the set.
Any refs with names that match are removed from the set.
"reflog" adds all the refs from the reflog. This will make past versions
of files not be considered to be unused until the ref expires from the