git/contrib/credential/netrc
Maxim Cournoyer 1926d9b6da contrib: better support symbolic port names in git-credential-netrc
To improve support for symbolic port names in netrc files, this
changes does the following:

 - Treat symbolic port names as ports, not protocols in git-credential-netrc
 - Validate the SMTP server port provided to send-email
 - Convert the above symbolic port names to their numerical values.

Before this change, it was not possible to have a SMTP server port set
to "smtps" in a netrc file (e.g. Emacs' ~/.authinfo.gpg), as it would
be registered as a protocol and break the match for a "smtp" protocol
host, as queried for by git-send-email.

Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-06-25 09:43:59 -07:00
..
.gitignore contrib/credential/netrc: make PERL_PATH configurable 2019-12-20 12:40:50 -08:00
Makefile contrib/credential/netrc: make PERL_PATH configurable 2019-12-20 12:40:50 -08:00
git-credential-netrc.perl contrib: better support symbolic port names in git-credential-netrc 2025-06-25 09:43:59 -07:00
meson.build meson: introduce kwargs variable for tests 2025-06-02 07:51:43 -07:00
t-git-credential-netrc.sh contrib/credential: fix "netrc" tests with out-of-tree builds 2025-02-18 11:40:03 -08:00
test.command-option-gpg
test.git-config-gpg
test.netrc
test.netrc.gpg
test.pl contrib: better support symbolic port names in git-credential-netrc 2025-06-25 09:43:59 -07:00