Creates a line-endings policy whose serialized state is relativized against projectDir,
at the cost of eagerly evaluating the line-ending state of every target file when the
policy is checked for equality with another policy.
Returns the sha of the git subtree which represents the root of the given project, or ObjectId.zeroId()
if there is no git subtree at the project root.