Skip to content

Repository sanitation for branch 2.4#25

Open
congma wants to merge 6 commits intolesgourg:2.4from
congma:for-julien-2.4
Open

Repository sanitation for branch 2.4#25
congma wants to merge 6 commits intolesgourg:2.4from
congma:for-julien-2.4

Conversation

@congma
Copy link
Copy Markdown

@congma congma commented Nov 13, 2014

Dear Julien,

Here are my sanitation fixes for the Class repo.

  • Currently the code contains a mixture of LF and CRLF line endings, so I added a .gitattributes file to normalize them to LF in the Git index. Future revisions to the files will be included into the index in normalized forms. Contributors and users can still determine what EOL character they'd like to use in their working trees through Git local/global configuration options (see the man page gitattributes(5), especially the sections concerning core.autocrlf and core.eol.
  • Some text source files have incorrect executable permission, which is now fixed.
  • The explanatory output files under output/ had been interned into the index since before they were excluded by .gitignore. Therefore, subsequent writes to such same files (possibly due to the user tweaking the explanatory.ini file and run class again) will show up as revisions, rendering the exclusion useless. I removed them from the index (git rm --cache) and created a .gitignore file in the output/ directory, so that the directory itself can be re-created on checkout (with nothing but its .gitignore file). For this to work, the main .gitignore file is revised accordingly.
  • Small tweaks to the .gitignore file and default Makefile.

Hope they'd be useful and not cause more troubles ;)

Best wishes,
Cong.

ThomasTram and others added 6 commits November 12, 2014 13:59
The repo is currently in a state of inconsistent end-of-line (EOL)
character usage.  This commit attempts to fix it as recommended by the
manual gitattributes(5).
It is not enough to just exclude them in .gitignore rules.  They must be
removed from the index so that they are no longer tracked in the future.
The `output/` directory now includes its own .gitignore file, so that
the directory will be created when doing a checkout.  This helps prevent
path-not-found error when running class from the repo directory.
The `clean` target now cleans the `class` executable file.  It no longer
requires the (unnecessary) `.base` target.
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