stefmolin / exif-stripper

Pre-commit hook to ensure image EXIF data is removed.
https://pypi.org/project/exif-stripper/
Apache License 2.0
8 stars 4 forks source link

Sometimes xattr clears an attribute that doesn't appear visible to git #4

Open stefmolin opened 8 months ago

stefmolin commented 8 months ago

Sometimes xattr clears an attribute that doesn't appear visible to git – try to figure out which and prevent this.

stefmolin commented 3 months ago

One such attribute is com.apple.provenance, which can only be deleted by running xattr -d com.apple.provenance file from Terminal.app, and not in another terminal application like iTerm2. See also: https://apple.stackexchange.com/questions/450118/what-is-the-com-apple-provenance-xattr-extended-attribute-and-how-can-i-dele

After running that, git status does not show any difference. More research needs to be done as to the purpose of that field, and whether it can be excluded from deletion.