CommitController: Don't rewrap commit message when amending
commitdf4a50aebef61c54fca42c229fa64fd8105b0499
authorPieter de Bie <pdebie@ai.rug.nl>
Wed, 27 May 2009 16:51:23 +0000 (27 17:51 +0100)
committerPieter de Bie <pdebie@ai.rug.nl>
Wed, 27 May 2009 16:51:23 +0000 (27 17:51 +0100)
treee53b6cd3ceab49b9317b2150e820f04a8aca7565
parentb5dac080ff80c048687261a7e96f032c7a87a9ba
CommitController: Don't rewrap commit message when amending

We used to use git log with a custom pretty command to reread the commit message,
but this rewraps the subject line, and also adds extra newlines. We fix this
by reading in the raw commit from git-cat-file, and then searching for the
double newline.
PBGitCommitController.m