Re: [PATCH v4 07/16] refs: add refs_head_ref()

2017-09-06 Thread Duy Nguyen
On Fri, Aug 25, 2017 at 4:52 AM, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > > ... which does what? > > Unlike refs_for_each_ref() and friends, this does not iterate. > It just uses the same function signature to make a single call >

Re: [PATCH v4 07/16] refs: add refs_head_ref()

2017-08-24 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: ... which does what? Unlike refs_for_each_ref() and friends, this does not iterate. It just uses the same function signature to make a single call of fn on the "HEAD" ref. Did I capture what it does right? Thanks.

[PATCH v4 07/16] refs: add refs_head_ref()

2017-08-23 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- refs.c | 23 +-- refs.h | 2 ++ 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/refs.c b/refs.c index ea8e6b9f42..b3a0a24469 100644 --- a/refs.c +++ b/refs.c @@ -1248,27 +1248,30 @@ int