From de96818816099d06be68f8d50ce84eb14211f3c4 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Thu, 15 Aug 2024 14:03:48 -0300 Subject: [PATCH] Improve code shim output on git commit --- home/dot_local/bin/executable_code | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/dot_local/bin/executable_code b/home/dot_local/bin/executable_code index 03b3b00..0c4bdb9 100644 --- a/home/dot_local/bin/executable_code +++ b/home/dot_local/bin/executable_code @@ -6,6 +6,12 @@ if [ -n "${DEBUG:-}" ]; then set -x fi +# This ensures there's a line between git's "hint: Waiting for your editor to close the file..." +# and the next output +if [ -n "${GIT_INDEX_FILE:-}" ]; then + echo >&2 +fi + # Find whether we are trying to open a directory target_dir="" for arg in "$@"; do