Bots-United / metamod-p

Metamod is a plugin/DLL manager that sits between the Half-Life Engine and an HL Game mod, allowing the dynamic loading/unloading of mod-like DLL plugins to add functionality to the HL server or game mod. Metamod-P is enhanced version of Metamod. It has dynamic link-entities and automatic detection of Mod DLL and other improvement to allow it work with future Half-Life Engine updates and new Mods and updates.
http://metamod-p.sourceforge.net/
102 stars 34 forks source link

Line endings patch for text files #15

Closed p5-vbnekit closed 4 years ago

p5-vbnekit commented 5 years ago

By default (correct settings) git repository index contains text files in unix line endings format (LF symbol only). Then platform specific client can correct it automatically it to expected format (e.g. CR+LF on Windows).

TheStormN commented 4 years ago

While I understand your concerns, this would cripple the git blame history and basically put your name on each and every line. There are other way to deal with that but I can't promise when this would happen.

p5-vbnekit commented 4 years ago

I can offer you other solutions.

  1. You can make this commit yourself.
  2. After each pull-regues and before merge, you can add a commit that fixes the line-endings in the targeted files. May be it's possible to make a hook in github?
TheStormN commented 4 years ago

Even if the author @jkivilin does that, it will still make it harder to track meaningful changes. The best way that I know of is to use reverse-tree with rebase and force push, but it's not good practice to do that on public branches. :)

Fortunately the git client have pretty good options about checkout and commit. You can configure it to always checkout and commit in Unix style line endings.