git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: <git@vger.kernel.org>
Cc: Jeff King <peff@peff.net>
Subject: [PATCH v2 0/5] Wildcard matching for credentials
Date: Thu, 20 Feb 2020 02:24:08 +0000	[thread overview]
Message-ID: <20200220022413.258026-1-sandals@crustytoothpaste.net> (raw)

This series introduces wildcard matching (that is, urlmatch support) for
credential config options, just like for the http options.  This is
helpful in corporate environments where custom credentials should be
used across a wide variety of subdomains.

Changes from v1:
* Add a variety of additional tests in patch 3.
* Switch to using the last matching config option for
  credential.username like we do everywhere else.
* Use all matching config keys, as we did before.
* Skip calling git_default_config.
* Fix percent-encoding handling and add a function to handle that.

brian m. carlson (5):
  mailmap: add an additional email address for brian m. carlson
  t1300: add test for urlmatch with multiple wildcards
  t0300: add tests for some additional cases
  credential: use the last matching username in the config
  credential: allow wildcard patterns when matching config

 .mailmap                         |   1 +
 Documentation/gitcredentials.txt |   4 +-
 credential.c                     |  75 +++++++++++++-----
 credential.h                     |   3 +-
 strbuf.c                         |  15 ++++
 strbuf.h                         |   6 ++
 t/t0300-credentials.sh           | 128 +++++++++++++++++++++++++++++++
 t/t1300-config.sh                |   6 ++
 urlmatch.c                       |   4 +-
 urlmatch.h                       |   9 +++
 10 files changed, 228 insertions(+), 23 deletions(-)


             reply	other threads:[~2020-02-20  2:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20  2:24 brian m. carlson [this message]
2020-02-20  2:24 ` [PATCH v2 1/5] mailmap: add an additional email address for brian m. carlson brian m. carlson
2020-02-20  2:24 ` [PATCH v2 2/5] t1300: add test for urlmatch with multiple wildcards brian m. carlson
2020-02-20  2:24 ` [PATCH v2 3/5] t0300: add tests for some additional cases brian m. carlson
2020-02-20  2:24 ` [PATCH v2 4/5] credential: use the last matching username in the config brian m. carlson
2020-02-20  2:24 ` [PATCH v2 5/5] credential: allow wildcard patterns when matching config brian m. carlson
2020-02-20 21:20   ` Junio C Hamano
2020-02-21  6:10 ` [PATCH v2 0/5] Wildcard matching for credentials Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200220022413.258026-1-sandals@crustytoothpaste.net \
    --to=sandals@crustytoothpaste.net \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).