Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EOL in python files #798

Open
garethsb opened this issue Apr 27, 2023 · 1 comment
Open

EOL in python files #798

garethsb opened this issue Apr 27, 2023 · 1 comment

Comments

@garethsb
Copy link
Contributor

We don't have a .gitattributes file and it turns out we have python files stored with both LF and CRLF endings. Ouch. Would destroy use of blame if we fixed it though, right? Any ideas?

@peterbrightwell
Copy link
Contributor

We discussed this on today's ARG call. We could fix the file with a commit or commits and list these in a .git-blame-ignore-revs file. See https://github.blog/changelog/2022-03-24-ignore-commits-in-the-blame-view-beta/.

I've tested this on one of my repos and it mostly seems to work on the GitHub view (although did blame the commit on a blank line).

For command line use git blame --ignore-revs-file=.git-blame-ignore-revs

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

No branches or pull requests

2 participants