[Koha-devel] Git whitespace warnings on DOS files

Marcel de Rooy M.de.Rooy at rijksmuseum.nl
Mon Oct 10 10:19:46 CEST 2011


Thanks for replying, Colin.
Applying with --whitespace=strip (or fix) does not make a difference. In both cases the errors are shown, but the changes are applied.
I would just like to get rid of the warnings, because they are not valid in this case. In a DOS file (such as this file still is), all lines have CR before LF.
When a patch generates warnings, it is likely to be ignored.

Apparently, the git developers did not yet tackle this line endings issue.

-----Oorspronkelijk bericht-----
Van: koha-devel-bounces at lists.koha-community.org [mailto:koha-devel-bounces at lists.koha-community.org] Namens Colin Campbell
Verzonden: donderdag 6 oktober 2011 15:06
Aan: koha-devel at lists.koha-community.org
Onderwerp: Re: [Koha-devel] Git whitespace warnings on DOS files

On 06/10/11 12:29, Marcel de Rooy wrote:
> Hi all,
>
> Does anyone of you know how to get rid of whitespace warnings in git in the following scenario. (See also bugzilla patch 6803).
> (Note that I am using git version 1.6.0.6.) If you have a higher version and do not have the warnings, please let me know.
>
I think if you set
  git config apply.whitespace=strip
it will show the error but strip the whitespace errors in applying the 
patch.

C.

-- 
Colin Campbell
Chief Software Engineer,
PTFS Europe Limited
Content Management and Library Solutions
+44 (0) 845 557 5634 (phone)
+44 (0) 7759 633626  (mobile)
colin.campbell at ptfs-europe.com
skype: colin_campbell2

http://www.ptfs-europe.com
_______________________________________________
Koha-devel mailing list
Koha-devel at lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


More information about the Koha-devel mailing list