summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-02-04 13:23:06 -0800
committerJunio C Hamano <gitster@pobox.com>2026-02-05 20:36:48 -0800
commit6a41481c6de1cedb059930a710896c5ab2508a12 (patch)
tree96096a5a495420b2c24a1d785cd86554eb755cfa /contrib/persistent-https
parent51358a1ede7f4b6b50e4e5a86558af5204691fe0 (diff)
downloadgit-6a41481c6de1cedb059930a710896c5ab2508a12.tar.gz
git-6a41481c6de1cedb059930a710896c5ab2508a12.zip
whitespace: symbolic links usually lack LF at the end
For a patch that touches a symbolic link, it is perfectly normal that the contents ends with "\ No newline at end of file". The checks introduced recently to detect incomplete lines (i.e., a text file that lack the newline on its final line) should not trigger. Disable the check early for symbolic links, both in "git apply" and "git diff" and test them. For "git apply", we check only when the postimage is a symbolic link regardless of the preimage, and we only care about preimage when applying in reverse. Similarly, "git diff" would warn only when the postimage is a symbolic link, or the preimage when running "git diff -R". Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions