Ashley Moran <[email protected]> writes:
> Just wondering, how feasible would a patch type that adjusts only the
> spaces (and/or tabs) in a line be?
The details of your specific case confused me, so here is my usual
generic advice regarding whitespace issues. IMO the right way to fix
most whitespace issues is to
1. Add Emacs and vim noise to the bottom of each file, so that
people using these editors automatically get the right thing,
even if their global defaults are wrong. For example
^L
{-
This comment provides hints for editors about what kind of file
this is, and conventions to adhere to when editing it. The page
break (^L) above helps Emacs find quickly locate this metadata.
Local Variables:
mode: foo
coding: utf-8
indent-tabs-mode: nil
fill-column: 70
End:
vim: filetype=foo fileencoding=utf-8 tw=70 expandtab :
-}
2. If it gets to be a real problem, add a pre-commit hook that refuses
to commit / push patches that contain "wrong" whitespace.
Something like,
darcs setpref test ! grep -r --exclude-dir _darcs \\t .
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users