git --diff: fix traceback when getting mode change
- use the manifest instead of the mode in the working dir
if the diff is against two revisions
- add a testcase
adding a1 files updated, 0 files merged, 0 files removed, 0 files unresolvedadding bpushing to ../aabort: could not lock repository ../a: Permission denied