accept 'diff' as a filetype in addition to 'git'