templates / branches--on commit diff: use tempfile module (284098f)
   1: this is just to ensure the directory exists.