Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

EOL normalization? (Was: Completion script for the ctags program)



On Mon, Mar 29, 2021, at 4:54 AM, Peter Stephenson wrote:
> 
> > On 29 March 2021 at 00:29 Oliver Kiddle <opk@xxxxxxx> wrote:
> > The previous files also had DOS
> > line endings - if someone other than me pushes any updates, please
> > ensure we only have Unix line endings.
> 
> That would likely be my fault because on that occasion I extracted the script
> from the original email in a somewhat clumsy cross-platform way.  It was
> inconvenient and bug-prone enough I'm likely to be leaving anything like
> this in future until I'm back on a proper Linux system...

Would it be desirable to normalize line endings on commit (see
https://git-scm.com/docs/gitattributes#_end_of_line_conversion)?

vq



diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..0a192b762
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+# Normalize EOLs to LF in files that look like text.
+* text=auto




Messages sorted by: Reverse Date, Date, Thread, Author