github/GitPad — pull request #1 by aroben (2012-03-08 01:05:59+00:00)
Title: Truncate the original file before overwriting it

If you opened a file that contained "AAAAA" and edited it to contain "BBB",
GitPad would create a file that contained "BBBAA". Now the original file gets
completely truncated before the new contents are laid down, so you'll end up
with "BBB" as expected.