]> git.ipfire.org Git - thirdparty/git.git/commit - convert.c
Update 'crlf' attribute semantics.
authorJunio C Hamano <junkio@cox.net>
Fri, 20 Apr 2007 05:37:19 +0000 (22:37 -0700)
committerJunio C Hamano <junkio@cox.net>
Fri, 20 Apr 2007 05:37:44 +0000 (22:37 -0700)
commit163b95919428cd7d782af91296e0b886683f2daa
tree7f11f2139d89e006edb4d4c806da3ec7ffd9554b
parent4392da4d5d7585a9defa6869517cb354f7460f35
Update 'crlf' attribute semantics.

This updates the semantics of 'crlf' so that .gitattributes file
can say "this is text, even though it may look funny".

Setting the `crlf` attribute on a path is meant to mark the path
as a "text" file.  'core.autocrlf' conversion takes place
without guessing the content type by inspection.

Unsetting the `crlf` attribute on a path is meant to mark the
path as a "binary" file.  The path never goes through line
endings conversion upon checkin/checkout.

Unspecified `crlf` attribute tells git to apply the
`core.autocrlf` conversion when the file content looks like
text.

Setting the `crlf` attribut to string value "input" is similar
to setting the attribute to `true`, but also forces git to act
as if `core.autocrlf` is set to `input` for the path.

Signed-off-by: Junio C Hamano <junkio@cox.net>
convert.c
t/t0020-crlf.sh