diff options
author | Prathamesh Chavan <pc44800@gmail.com> | 2017-06-08 23:38:12 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-12 13:26:55 -0700 |
commit | e0556a928fdba489307d13d8d4c4d2a461fbc3ad (patch) | |
tree | f460fa671a19aa903c800cc611b9e7ed5ba1f304 /vcs-svn/fast_export.c | |
parent | Git 2.13 (diff) | |
download | tgif-e0556a928fdba489307d13d8d4c4d2a461fbc3ad.tar.xz |
dir: create function count_slashes()
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 implementing it in dir.c to
remove this code duplication.
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Prathamesh Chavan <pc44800@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'vcs-svn/fast_export.c')
0 files changed, 0 insertions, 0 deletions