Properly strip trailing whitespace
Only get first log message (head not really needed, either)
Made more SVN-like, and use SVN rev ID from git-svn if present