File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ gf_use_color=
2020# helpers {{{1
2121
2222debug () (
23- [ " $gf_debug " != 1 ] && return
23+ [ " $3 " != " -- " ] && [ " $ gf_debug" != 1 ] && return
2424 >&2 printf " [debug] %s @ %s:%d # " " $( basename " $0 " ) " " $1 " " $2 "
2525 shift 2
2626 >&2 echo " $@ "
@@ -77,12 +77,11 @@ _git_conf_get__cb__ft_map () (
7777
7878 # shellcheck disable=SC2086,SC2154
7979 git config $conf --get-regexp " $gc_prog_name " ' \.map-' | while read -r line; do
80+ debug " line = $line "
8081 line=" $( echo " $line " | awk -F' --' ' {print $2}' ) "
8182 ft=" $( echo " $line " | cut -d' ' -f1) "
8283 ext=" $( echo " $line " | cut -d' ' -f2- | pat_list_to_case) "
8384
84- echo " $ft " > ~ /test
85-
8685 # shellcheck disable=SC2254
8786 case " $file " in
8887 $ext )
@@ -96,13 +95,16 @@ _git_conf_get__cb__ft_map () (
9695_git_conf_get__cb__section_glob () (
9796 _git_conf_get__prep_conf_file_arg_
9897
98+ debug " args =" " $@ "
99+
99100 file=" $1 "
100101 var=" $2 "
101102
102103 val=
103104
104105 # shellcheck disable=SC2086
105106 while read -r line; do
107+ debug " line = $line "
106108 opt=" $( echo " $line " | cut -d' ' -f1) "
107109 # shellcheck disable=SC2254
108110 case " $gc_prog_name .$file .$var " in
You can’t perform that action at this time.
0 commit comments