Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Conversation

@sharwell
Copy link
Contributor

Many of the files in the repository were not stored according to Git conventions. This change adds an initial .gitattributes file and re-saves all text files using the expected line endings (\n in source control, \r\n on disk when working on Windows). The presence of .gitattributes will prevent inconsistencies from being introduced in future commits, regardless of the settings being used by individual developers.

The commit which re-saves files is intentionally marked as authored by @FrancescoLogozzo. This matches the original commit to this repository and ensures git blame does not mis-attribute lines of code to me.

@yaakov-h
Copy link
Contributor

FYI, git blame won't mis-attribute if you use -w to ignore whitespace.

@sharwell
Copy link
Contributor Author

@yaakov-h CodeLens in Visual Studio does not use -w.

@sharwell
Copy link
Contributor Author

@yaakov-h Three other places that don't use -w:

  1. GitHub's Blame feature
  2. GitHub's graphs page
  3. Most users using Git from the command line

This was referenced Jun 16, 2015
SergeyTeplyakov added a commit that referenced this pull request Jun 17, 2015
@SergeyTeplyakov SergeyTeplyakov merged commit c71ef8f into microsoft:master Jun 17, 2015
@sharwell sharwell deleted the gitattributes branch June 18, 2015 01:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants