Visit
http://git.cgsecurity.org/cgit/testdisk/
to navigate in TestDisk & PhotoRec source code.
Run
git clone http://git.cgsecurity.org/testdisk.git
to get a local mirror of the developpement tree.