brian m. carlson's patch changes the documentation to say clearly that http.extraheader is not intended for credentials. He writes that people use it that way often and that it is easy to misuse.

He lists the risks. Users often do not use the URL-qualified form of the option, which exposes the credential to every server Git connects to. Setting it on the command line or in the config file can expose it to other users, or to anyone who gets access to the repository, respectively.

He adds that using it for the Authorization header is known to break some uses of Git LFS. Parts of that protocol can include their own Authorization header, and since the tool, like Git, always adds the header, two Authorization headers result.

Junio Hamano's only comment in the excerpts is that "used" appears to be missing in "should not be used to pass ...". A second version of the patch was then posted.