Adds hash anchors to diff_files to make possible linking exact file in commit Closes #24010 See merge request !7298