- fix "no such entry found in tree" error with got log -p and an added path
- show a list of paths changed in a commit with 'got log -P' and in tog
- prevent false positive tree entry differences due to bogus file mode bits
- write directory tree entry mode bits in the same way as Git does (0040000)
Thanks to matthieu@ for suggesting 'got log -P' and help with testing,
and to millert@ and semarie@ for code review.
ok sthen@ naddy@