From d0b00911847fdade71132dd0b573c5778ad479be Mon Sep 17 00:00:00 2001 From: zmuxuny Date: Tue, 20 Oct 2026 21:13:43 -0700 Subject: [PATCH] Make git-external-diff usage text a shell comment The usage text is enclosed by Perl POD markers, but this is a Bash script. As a result the text and its embedded Git commands are executed on every invocation. Use a quoted no-op here-document to keep the documentation literal and leave the diff behavior unchanged. --- src/tools/git-external-diff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/git-external-diff b/src/tools/git-external-diff index 39ddd01b..71db2ccc 100644 --- a/src/tools/git-external-diff +++ b/src/tools/git-external-diff @@ -7,7 +7,7 @@ # path old-file old-hash old-mode new-file new-hash new-mode # 'path' is the git-tree-relative path of the file being diff'ed -=comment +: <<'DOCUMENTATION' This info is copied from the old wiki page on Working with git: @@ -40,7 +40,7 @@ Alternatively, configure a git alias in ~/.gitconfig or .git/config: [alias] cdiff = !GIT_EXTERNAL_DIFF=git-context-diff git diff -=cut +DOCUMENTATION old_hash="$3" new_hash=$(git hash-object "$5") -- 2.52.0