forum/short exlusive refspec notation for git annex unused git-annexhttp://git-annex.branchable.com/forum/short_exlusive_refspec_notation_for_git_annex_unused_/git-annexikiwiki2019-04-09T15:38:26Zcomment 1http://git-annex.branchable.com/forum/short_exlusive_refspec_notation_for_git_annex_unused_/comment_1_0aeb5702e74fcf158f1e9aca16ca9e6b/joey2019-04-09T15:38:26Z2019-04-09T15:16:12Z
<pre><code> Each - is matched against the set of refs accu‐
mulated so far. Any matching refs are removed
from the set.
</code></pre>
<p>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.</p>
<p>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.</p>