Re: [PATCH v5 2/5] refs: add ref_type function

2015-08-11 Thread David Turner
On Mon, 2015-08-03 at 20:55 +0700, Duy Nguyen wrote: On Fri, Jul 31, 2015 at 1:06 PM, David Turner dtur...@twopensource.com wrote: Add a function ref_type, which categorizes refs as per-worktree, pseudoref, or normal ref. For per-worktree refs, you probably should follow common_list[] in

Re: [PATCH v5 2/5] refs: add ref_type function

2015-08-03 Thread David Turner
On Mon, 2015-08-03 at 20:55 +0700, Duy Nguyen wrote: On Fri, Jul 31, 2015 at 1:06 PM, David Turner dtur...@twopensource.com wrote: Add a function ref_type, which categorizes refs as per-worktree, pseudoref, or normal ref. For per-worktree refs, you probably should follow common_list[] in

[PATCH v5 2/5] refs: add ref_type function

2015-07-31 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