Oh it makes all sorts of temporary files and directories, sometimes in the right places as per UNIX filesystem conventions, but often not.
So you only snapshot the rest. (And since your source tree is under version control, finding stray garbage there is straightforward unless you checked it in)