X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=set-commit-date.py;h=a88c5dea43849ddba38a0272f6ce74a24ac9a995;hb=38b26e6bbb22cc7dd8fae8076279311596005bd5;hp=45302528606e7cc40398a647b87c94a1111668ee;hpb=173e9528903dd59af83b1cca536e5c4cffcac422;p=git-scripts.git diff --git a/set-commit-date.py b/set-commit-date.py index 4530252..a88c5de 100755 --- a/set-commit-date.py +++ b/set-commit-date.py @@ -43,9 +43,9 @@ for line in git_log.stdout: filename = line.split(None, 2)[1] elif line.startswith('R'): filename = line.split(None, 3)[2] # renamed to - if line.startswith('D'): - if filename not in changed_files: # The file was not readded - deleted_files.add(filename) + if line.startswith('D') and filename not in changed_files: + # The file was not readded + deleted_files.add(filename) if filename not in deleted_files and filename not in changed_files: changed_files.add(filename) if os.path.exists(filename):