a634157de1
So far, we expect from a commit that renames a file to contain a changelog entry only for the new name. For example, after the following commit: $ git move foo bar $ git commit We expect the following changelog: * bar: Renamed from foo. Git does not keep track of renamings, only file deletions and additions. The display of patches then uses heuristics (with config-dependent parameters) to try to match deleted and added files in the same commit. It is thus brittle to rely on this information. This commit modifies changelog processing so that renames are considered as a deletion of a file plus an addition of another file. The following changelog is now expected for the above example: * foo: Move... * bar: Here. contrib/ * gcc-changelog/git_email.py (GitEmail.__init__): Interpret file renamings as a file deletion plus a file addition. * gcc-changelog/git_repository.py (parse_git_revisions): Likewise. * gcc-changelog/test_email.py: New testcase. * gcc-changelog/test_patches.txt: New testcase. |
||
---|---|---|
.. | ||
gcc-changelog | ||
header-tools | ||
legacy | ||
reghunt | ||
regression | ||
testsuite-management | ||
unicode | ||
vim-gcc-dev | ||
analyze_brprob_spec.py | ||
analyze_brprob.py | ||
bench-stringop | ||
ChangeLog | ||
ChangeLog.jit | ||
ChangeLog.tree-ssa | ||
check_GNU_style_lib.py | ||
check_GNU_style.py | ||
check_GNU_style.sh | ||
check_makefile_deps.sh | ||
check_warning_flags.sh | ||
check-internal-format-escaping.py | ||
check-params-in-docs.py | ||
clang-format | ||
compare_tests | ||
compare_two_ftime_report_sets | ||
compare-all-tests | ||
compare-debug | ||
compare-lto | ||
compareSumTests3 | ||
config-list.mk | ||
dg-cmp-results.sh | ||
dg-extract-results.py | ||
dg-extract-results.sh | ||
dglib.pm | ||
download_prerequisites | ||
filter_gcc_for_doxygen | ||
filter_knr2ansi.pl | ||
filter_params.py | ||
filter-clang-warnings.py | ||
gcc_build | ||
gcc_update | ||
gcc-git-customization.sh | ||
gcc.doxy | ||
gen_autofdo_event.py | ||
gennews | ||
git-add-user-branch.sh | ||
git-add-vendor-branch.sh | ||
git-backport.py | ||
git-fetch-vendor.sh | ||
gthr_supp_vxw_5x.c | ||
index-prop | ||
jit-coverage-report.py | ||
maintainers-verify.sh | ||
make_sunver.pl | ||
make-obstacks-texi.pl | ||
mark_spam.py | ||
mklog.py | ||
paranoia.cc | ||
patch_tester.sh | ||
prepare_patch.sh | ||
prepare-commit-msg | ||
prerequisites.md5 | ||
prerequisites.sha512 | ||
repro_fail | ||
test_installed | ||
test_mklog.py | ||
test_recheck | ||
test_summary | ||
texi2pod.pl | ||
uninclude | ||
unused_functions.py | ||
update-copyright.py | ||
vimrc | ||
warn_summary |