Refactor to not create a file called 'git diff' upon Ctrl+D.