Ah, finally got it. Apparently 1) eclipse always changes line endings of edited files to the workspace setting (defaulting to the system-typical variant) and 2) eclipse's egit completely ignores .gitattributes.