Hi Dave,
If you want to enforce committing Windows-style line endings, that is
not possible.
You can force 'Checkout as-is, commit as-is' in which case Windows-style
line endings are preserved when committing.
However. This would not solve your troubles because you apparently have
mixed line endings in the *repository* already. Our proposed solution
(which apparently was ineffective for your use case, probably because
part of your team chose not to use our solution) is to enforce
Windows-style endings *in the working directory only*, and enforce
Unix-style line endings *in the repository*. This would have addressed
your concern about .bat files, too, BTW, because the .bat files need
Windows-style line endings only in the working directory, not in the
repository, because they never run directly from the repository.
Ciao,
Johannes