Re: [PATCH] pre-commit hook should ignore carriage returns at EOL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 24, 2008, at 2:26 PM, Ian Hilt wrote:
Perhaps you want to use printf "foo\r" instead?  echo "foo\r" does not
produce a CR on my system.

...

Wouldn't it be less redundant to do a test for \s\r$ here instead of
testing for \r$ and then \s\r$?


The code is checking for \r$ and then doing a different space check depending on that, not one after another.

Thanks for the feedback. I'll put up v2 in a second.

Ciao!
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux