An option like joe's -break_links is very useful when working with source files that have been hardlinked when cloning source trees in order to save disk space.
Enabling this option when editing a hardlinked file will then break the link, essentially implementing a copy-on-write mechanism.
Unfortunately, joe's currently implemented -break_links option also breaks symlinks!
I often use symlinks to edit documents stored elsewhere from within my project directories, so I certainly do not want symlinks to be broken.
What I would actually need is a combination of -break_links and --break_links: hardlinks should be broken but symlinks should not.
I therefore would really appreciate either an additional option like -break_hardlinks, or just modifying the existing -break_links to not delete the working file before writing back if it turns out to be a symlink (because no-one wants to break symlinks in most situations anyway).
Log in to post a comment.