[FFmpeg-devel] [PATCH] Force text files to be downloaded in UNIX line ending (LF)

Timotius Margo timargo at microsoft.com
Sat Jan 10 09:40:07 CET 2015

>From 7723f4ed203671c410109cbaf6dc3caca130b27b Mon Sep 17 00:00:00 2001
From: Timotius Margo <timargo at microsoft.com>
Date: Fri, 9 Jan 2015 17:03:56 -0800
Subject: [PATCH] Force text files to be downloaded in UNIX line ending (LF)

In a default MinGW environment, FFmpeg is always downloaded with CRLF
(Windows) line ending. This causes a problem with autoconf and prevents
user from building FFmpeg successfully without applying a workaround.
Current suggested workaround is to set core.autocrlf to false in git
global config. This workaround is not ideal since it affects other git
project in the same machine.

This change eliminates the need for the workaround by ensuring that
the text files are downloaded in UNIX line ending regardless of the
core.autocrlf setting.

Signed-off-by: Timotius Margo <timargo at microsoft.com>
 .gitattributes | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitattributes b/.gitattributes
index a900528..2e15a9e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1 +1,2 @@
+* text eol=lf
 *.pnm -diff -text

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Force-text-files-to-be-downloaded-in-UNIX-line-endin.patch
Type: application/octet-stream
Size: 1071 bytes
Desc: 0001-Force-text-files-to-be-downloaded-in-UNIX-line-endin.patch
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150110/d83b79cd/attachment.obj>

More information about the ffmpeg-devel mailing list