You can use git commit --only -m "<commit-message>" foo/bar/fileA.ts foo/bar/fileB.ts
and git will commit those file paths directly without touching you staged/unstaged files.
We should add support for this as a context menu option on files in SCM view