destroyed-symlinks detects symlinks that were converted to regular files containing the target path (common when checking out a repo on Windows without symlink support, or after a bad merge). It should check if a file's content looks like a symlink target (single line, no newline, points to an existing path or looks like a relative path) and alert the user.
repos:
- repo: builtin
hooks:
- id: destroyed-symlinks