This would combine well with your idea.
So let's say that I change python source code, the "file system" would understand the syntax of python source. Your tool could then use this to derive the sematics of my change, i.e. "added a function foo() with the following signature and body"