Escape {0}, {1}, {N}... in commands and files strings #763
-
I have a use case where I need to use Is there a way to escape the Apologies if this has been answered before; I could not find any relevant Q&As / issues about it |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
As an aside, I've worked around this for now with a little shell magic: git diff-tree -r --name-only --no-commit-id HEAD@{$(echo 1)} HEAD Looking at the relevant code it seems like there isn't any built-in way to do this lefthook/internal/lefthook/runner/prepare_command.go Lines 183 to 189 in c15e15c |
Beta Was this translation helpful? Give feedback.
As an aside, I've worked around this for now with a little shell magic:
git diff-tree -r --name-only --no-commit-id HEAD@{$(echo 1)} HEAD
Looking at the relevant code it seems like there isn't any built-in way to do this
lefthook/internal/lefthook/runner/prepare_command.go
Lines 183 to 189 in c15e15c