github / GitPad

Notepad.exe as Git commit editor
MIT License
187 stars 69 forks source link

Truncate the original file before overwriting it #1

Closed aroben closed 12 years ago

aroben commented 12 years ago

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.