We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b15a43 commit 5c58080Copy full SHA for 5c58080
git-fmt-diff
@@ -65,10 +65,6 @@ pat_list_to_case () {
65
66
rm_list__push () {
67
[ "$gf_debug" -eq 2 ] && return
68
- if [ -z "$g_rm_list" ]; then
69
- g_rm_list="$(mktemp)"
70
- rm_list__push "$g_rm_list"
71
- fi
72
for f in "$@"; do
73
echo "$f" >> "$g_rm_list"
74
done
@@ -559,7 +555,9 @@ repo_root="$(git rev-parse --show-toplevel 2> /dev/null)"
559
555
# setup env {{{2
560
556
TMPDIR="${TMPDIR:-/tmp}"/git-"$gc_prog_name"
561
557
mkdir -p "$TMPDIR"
558
+g_rm_list="$(mktemp)"
562
rm_list__push "$TMPDIR"
+rm_list__push "$g_rm_list"
563
564
trap 'cleanup' EXIT
565
# }}}2
0 commit comments