Git will highlight moved code and delta shows that, so how does OmniDiff differ from
git diff --color-moved=zebra --color-moved-ws=allow-indentation-change2 karma · joined March 18, 2025
Git will highlight moved code and delta shows that, so how does OmniDiff differ from
git diff --color-moved=zebra --color-moved-ws=allow-indentation-changeThe `prepare-commit-msg` hook is a better place to do that as it gives the hook some context about the commit (is the user amending an existing commit etc.)
> To put it even more bluntly, if you are trying to enforce proper formatting, pre-commit hooks are absolutely the wrong tool for the job, as hooks are trivially bypassable, and not shared when cloning a repo, by design.
They aren't a substitute for server post-receive hooks but they do help avoid having pushes rejected by the server.
That means you will eval all the filenames, so if you have a file with spaces in it will appear as two files, if there is a `$` in the name it will trigger parameter substitution and so on for the other shell meta-characters.
`git archive --remote` will create a tarball from a remote repository so long as the server has enabled the appropriate config