Re: [PATCH v1] dir: create function count_slashes

2017-06-11 Thread Stefan Beller
On Thu, Jun 8, 2017 at 11:08 AM, Prathamesh Chavan wrote: > Similar functions exist in apply.c and builtin/show-branch.c for > counting the number of slashes in a string. Also in the later > patches, we introduce a third caller for the same. Hence, we unify > it now by cleaning the existing functi

[PATCH v1] dir: create function count_slashes

2017-06-08 Thread Prathamesh Chavan
Similar functions exist in apply.c and builtin/show-branch.c for counting the number of slashes in a string. Also in the later patches, we introduce a third caller for the same. Hence, we unify it now by cleaning the existing functions and declaring a common function count_slashes in dir.h and impl