Skip to content
Snippets Groups Projects
Commit b908d490 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[headers] fix identification of files that have been subject to git mv

parent 6052c729
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ else ...@@ -207,7 +207,7 @@ else
ifneq ($(HDRCK.HAS_GIT),) ifneq ($(HDRCK.HAS_GIT),)
define HDRCK.file-list-from-git-diff define HDRCK.file-list-from-git-diff
$(GIT) diff --name-status $(1) | $(GREP) -v "^D" | $(SED) "s/^.[ \t]*//" | $(TR) '\n' '\000' | $(HDRCK.FILE_ATTR) $(GIT) diff --name-status $(1) | $(GREP) -v "^D" | $(SED) -e "s/^[CR][0-9]\+[ \t]\+[^ \t]\+[ \t]\+//" -e "s/^[AM][ \t]*//" | $(TR) '\n' '\000' | $(HDRCK.FILE_ATTR)
endef endef
HDRCK.main-targets=check-headers headers HDRCK.main-targets=check-headers headers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment