[PATCH v3 0/6] pseudorefs
- From
David Turner <dturner@twopensource.com>
- Date
- Jul 28, 2015, 18:12 UTC
- Message-ID
- <1438107144-24293-1-git-send-email-dturner@twopensource.com>
This version fixes documentation issues found by Eric Sunshine.
It also adds a new patch so as not to create static functions that aren't immediately used; Eric also noticed that issue.
I refactored the functions to classify a ref into a single public ref_type function. This makes it easy for backends that want to treat all non-normal refs the same; in previous patch versions, backends would have had to say is_pseudoref || is_per_worktree_ref, and that would have caused the strcmp in is_per_worktree_ref to be called twice. Now they can just say ref_type(ref) != REF_TYPE_NORMAL.
I also fixed another issues that I noticed myself: I removed a stray debugging "&& 0" condition.