Skip to content

Commit ee52b5b

Browse files
author
Jorengarenar
committed
Remove leftover line
1 parent 7507003 commit ee52b5b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

git-fmt-diff

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ gf_use_color=
2020
# helpers {{{1
2121

2222
debug () (
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

0 commit comments

Comments
 (0)