line-log: avoid unnecessary full tree diffs