Closed ghost closed 12 years ago
i recently checked in VERSION on purpose. the reason is that without this file a build or install depends on the presence of git and git metafiles in .git. This fails for tarballs and introduces unnecessary problems for packagers on minimal build hosts.
note that an entry in .gitignore does not prevent your changed file from being checked in.
use git update-index --assume-unchanged alot/VERSION
to prevent changes from being committed.
don't hesitate to tell me if you find a better solution. this should go into the FAQ and developer manual.
Please update the FAQ and developer manual then. Thanks for the command.
done : http://pazz.github.com/alot/
I told you that this was a bad idea...
the autogeneration foo? or checking the file in?
Writing self modifying code in 2011 ;)
Quoting Justus Winter (2012-01-15 13:45:23)
Writing self modifying code in 2011 ;) aye. sure wasn't the greatest idea after all. I wouldn't mind switching back to static strings in alot.init in the end. I kinda liked the idea that
alot --version
gives you the correct version string and doesn't point to the last release tag in development versions.
If there is something done in the repository alot/VERSION will be changed you will get unstaged changes in git, even when you just pull from github your alot/VERSION will differ from upstream. Please do not use this script or follow this advice in alot/version.py:
This will automatically update the VERSION file, if
necessary. Note that the VERSION file should not be
checked into git; please add it to your top-level .gitignore file.