Re: [PATCH v3 3/6] refs: add ref_type function

2015-07-28 Thread Eric Sunshine
On Tue, Jul 28, 2015 at 2:12 PM, David Turner wrote: > Add a function ref_type, which categorizes refs as per-worktree, > pseudoref, or normal ref. > > Later, we will use this in refs.c to treat pseudorefs specially. > Alternate ref backends may use it to treat both pseudorefs and > per-worktree r

[PATCH v3 3/6] refs: add ref_type function

2015-07-28 Thread David Turner
Add a function ref_type, which categorizes refs as per-worktree, pseudoref, or normal ref. Later, we will use this in refs.c to treat pseudorefs specially. Alternate ref backends may use it to treat both pseudorefs and per-worktree refs differently. Signed-off-by: David Turner --- refs.c | 29 +