hk util mixed-line-ending
- Usage:
hk util mixed-line-ending [-d --diff] [-f --fix] <FILES>… - Effect: modifies state
Detect and fix mixed line endings
Arguments
<FILES>…— Files to check or fix
Flags
-d --diff— Output a diff of the change. Cannot use withfix.-f --fix— Fix mixed line endings by normalizing to LF-h --help— Print help
Examples
Check for mixed line endings, or normalize them to LF.
sh
hk util mixed-line-ending README.md
hk util mixed-line-ending --fix README.mdLearn more
Built-in linters and utilities · Troubleshooting · All commands
