Skip to content

Use -text instead of -crlf - #475

Merged
technoweenie merged 1 commit into
masterfrom
crlf-to-text
Jul 10, 2015
Merged

technoweenie merged 1 commit into
masterfrom
crlf-to-text

Conversation

@technoweenie

Copy link
Copy Markdown
Contributor

Fixing #473

@technoweenie

Copy link
Copy Markdown
Contributor Author

Apparently we can add macros. There's a builtin binary macro:

[attr]binary -diff -merge -text

What if we did something like this?

-*.gif filter=lfs diff=lfs merge=lfs -crlf
-*.png filter=lfs diff=lfs merge=lfs -crlf
+[attr]lfs filter=lfs diff=lfs merge=lfs -text
+*.gif lfs
+*.png lfs

Though this will take some research to figure out what versions of Git support it. We're targeting Git 1.8.2, which has the pre-push.

EDIT: Depending on backwards compatibility issues, we may go with:

*.gif filter=lfs diff=lfs merge=lfs -crlf -text

http://git-scm.com/docs/gitattributes

@technoweenie

Copy link
Copy Markdown
Contributor Author

I compiled a version of git from the v1.8.2 tag, and it worked fine. I don't want to use macros in Git LFS v0.5.3, but probably for v0.6.0 next month.

@shana

shana commented Jul 10, 2015

Copy link
Copy Markdown

Looks like crlf was renamed to text in 2010 - git/git@5ec3e67

That goes all the way back to git 1.7.2, so we're good just using text here methinks 😄

@technoweenie

Copy link
Copy Markdown
Contributor Author

Cool. I'm merging this, but I hope to use a custom macro in the next major release (v0.6.0).

technoweenie added a commit that referenced this pull request Jul 10, 2015
@technoweenie
technoweenie merged commit 2eef603 into master Jul 10, 2015
@technoweenie
technoweenie deleted the crlf-to-text branch July 10, 2015 14:09
technoweenie added a commit that referenced this pull request Jul 22, 2015
technoweenie added a commit that referenced this pull request Jul 22, 2015
Backport #475 for v0.5.x: Use -text instead of -crlf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants