{"thread":{"id":"48517","subject":"--diff-filter could use option for pre-rename files","startedAt":"2018-05-18T18:19:04Z","lastAt":"2018-05-18T18:19:04Z","messageCount":1,"participants":["Nathan Bush"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"347995","messageId":"278e5e56-f031-5e84-67ac-315b38f1b64c@newshubmedia.com","threadId":"48517","inReplyTo":null,"subject":"--diff-filter could use option for pre-rename files","fromName":"Nathan Bush","fromEmail":"nathan@newshubmedia.com","sentAt":"2018-05-18T18:13:12Z","receivedAt":"2018-05-18T18:19:04Z","isPatch":false,"sender":{"key":"nathan@newshubmedia.com","avatar":null},"body":"I've been trying to hook together a build script and a GIT repo.\n\nAt one points it makes the following calls:\n\ngit diff --find-copies-harder --find-renames=101% --name-only \n--diff-filter=ACMRT 'refs/tags/0.0.25' 'refs/tags/0.0.27' > modified.txt\ngit diff --find-copies-harder --find-renames=101% --name-only \n--diff-filter=D 'refs/tags/0.0.25' 'refs/tags/0.0.27' > deleted.txt\n\nIf a file was renamed, but otherwise unchanged (and needs to be deleted \nby the build script), the files' original name does not appear on either \nlist. Or, as far as I can tell, at all.\n\nMy current scripted workaround is something like\n\nolder = `git ls-tree --name-only --full-tree -r 'refs/tags/0.0.25'`\nnewer = `git ls-tree --name-only --full-tree -r 'refs/tags/0.0.27'`\ndeleted = older - newer\n(puts deleted in deleted.txt)\n\nIdeally this would just be a diff-filter option, say, --diff-filter=DE\n\n-Nathan Bush\n\n"}]}