Skip to content

Conversation

@msabramo
Copy link
Contributor

because it's generated from metadata.cfg

and because I keep getting annoying diffs because of newline differences
-- e.g.:

$ git diff
diff --git a/MySQLdb/release.py b/MySQLdb/release.py
index 5c30a6c..4ce9412 100644
--- a/MySQLdb/release.py
+++ b/MySQLdb/release.py
@@ -1,4 +1,4 @@
-
-__author__ = "Andy Dustman <farcepest@gmail.com>"
-version_info = (1,2,4,'final',1)
-__version__ = "1.2.4"
+
+__author__ = "Andy Dustman <farcepest@gmail.com>"
+version_info = (1,2,4,'final',1)
+__version__ = "1.2.4"

Cc: @Haypo, @okin, @methane

@msabramo
Copy link
Contributor Author

@farcepest: What do you think?

@okin
Copy link

okin commented Apr 17, 2014

@msabramo just removing it will still get you new files of it. I'd prefer to fix the problem (probably newlines and/or whitespace). Quick fix would be putting the file into the .gitignore.

@msabramo
Copy link
Contributor Author

@okin: The reason for the diff is the checked in version has Windows line endings. I happen to use OS X and Linux.

Could change the line endings of the file but then Windows users would have problems.

I think it makes sense to remove the file since it's generated -- e.g.: like .pyc or .o files.

I guess I should add it to .gitignore though.

because it's generated from metadata.cfg

and because I keep getting annoying diffs because of newline differences
-- e.g.:

    $ git diff
    diff --git a/MySQLdb/release.py b/MySQLdb/release.py
    index 5c30a6c..4ce9412 100644
    --- a/MySQLdb/release.py
    +++ b/MySQLdb/release.py
    @@ -1,4 +1,4 @@
    -
    -__author__ = "Andy Dustman <farcepest@gmail.com>"
    -version_info = (1,2,4,'final',1)
    -__version__ = "1.2.4"
    +
    +__author__ = "Andy Dustman <farcepest@gmail.com>"
    +version_info = (1,2,4,'final',1)
    +__version__ = "1.2.4"
@msabramo
Copy link
Contributor Author

OK, added MySQLdb/release.py to .gitignore now.

@msabramo
Copy link
Contributor Author

Ping

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