Created
October 2, 2013 22:58
-
-
Save jsoncorwin/6801789 to your computer and use it in GitHub Desktop.
Automatically converts my commits to iOS repo to TitleCase to prevent driving my co-founder crazy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
filename = sys.argv[1] | |
with open(filename, 'r+w') as f: | |
msg = f.read() | |
msg = msg.title() | |
f.seek(0) | |
f.write(msg) | |
exit(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment