FTFY: support wordwrapping commit messages

It's common for commit messages to be wrapped at odd places. git-gui
is often to blame. Adds support for automatically fixing up these
messages if running ftfy --amend, and adds a new option --msg-only for
fixing only the commit message.

Change-Id: Ia7ea529f8cb7395d34d9b39f1192598e9a1e315b
This commit is contained in:
John Koleszar
2012-03-28 16:41:16 -07:00
parent cb265a497d
commit a46ec16569
3 changed files with 119 additions and 21 deletions

View File

@@ -182,7 +182,6 @@ def main():
if out_hunks:
print FormatDiffHunks(out_hunks)
else:
sys.exit(1)
if __name__ == "__main__":