« get me outta code hell

acme: don't include hash in git commit view - dotfiles - Miscellaneous configuration files of my personal use
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-11-02 07:14:02 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-11-02 07:14:02 -0400
commita8094441ff2b3d9e3372d6a9cd571e0a5dd0a2ad (patch)
treef49a148c65fc5f5f6371a9d5d09fcbc165c9cf2a
parent985582b80c83dc894c383b41455973a1f9e7b562 (diff)
acme: don't include hash in git commit view HEAD main
This confuses resolving filenames in the current window's
directory. +git is enough to explain where the window is from.
-rw-r--r--lib/plumbing2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plumbing b/lib/plumbing
index 61b5426..58f333f 100644
--- a/lib/plumbing
+++ b/lib/plumbing
@@ -3,6 +3,6 @@ editor = acme
 type is text
 data matches '[0-9a-f]*[a-f][0-9a-f]*'
 data matches '([0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]+)'
-plumb start rc -c 'ifs=''''; cd `{echo '$wdir' | perl -pe ''chomp if eof''}; cd `{git rev-parse --show-toplevel | perl -pe ''chomp if eof''} && git show '$1' | plumb -i -d edit -a ''action=showdata filename=+git/'$1''' '
+plumb start rc -c 'ifs=''''; cd `{echo '$wdir' | perl -pe ''chomp if eof''}; cd `{git rev-parse --show-toplevel | perl -pe ''chomp if eof''} && git show '$1' | plumb -i -d edit -a ''action=showdata filename=+git'' '
 
 include basic