git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] git: support separate arg for `--config-env`'s value

From
Patrick Steinhardt <ps@pks.im>
Date
Apr 19, 2021, 15:56 UTC
Message-ID
<cover.1618847606.git.ps@pks.im>
Hi,

As pointed out by Ævar, the synopsis in the git(1) manpage was misdocumenting the syntax of the `--config-env` option. This patch series fixes it and also addresses the shortcoming that while most of the other options support both `--git-dir=foo` and `--git-dir foo`, `--config-env` only supported the former format.

I'm happy to drop the latter patch if it's generally seen as something that's not needed, but Ævar and Peff got a point in that it feels inconsistent with the other options.

Patrick
Patrick Steinhardt (2):
  git.txt: fix synopsis of `--config-env` missing the equals sign
  git: support separate arg for `--config-env`'s value
 Documentation/git.txt |  2 +-
 git.c                 |  8 ++++++++
 t/t1300-config.sh     | 15 ++++++++++++++-
 3 files changed, 23 insertions(+), 2 deletions(-)
-- 
2.31.1
Next: Patrick Steinhardt
Message 1 of 11 in “git: support separate arg for `--config-env`'s value”
  1. 0/2 git: support separate arg for `--config-env`'s valuePatrick Steinhardt, Apr 19, 2021
  2. 1/2 git.txt: fix synopsis of `--config-env` missing the equals signPatrick Steinhardt, Apr 19, 2021
  3. 2/2 git: support separate arg for `--config-env`'s valuePatrick Steinhardt, Apr 19, 2021
  4. Ævar Arnfjörð BjarmasonApr 20, 2021
  5. Jeff KingApr 23, 2021
  6. Ævar Arnfjörð BjarmasonApr 20, 2021
  7. 0/2 git: support separate arg for `--config-env`'s valuePatrick Steinhardt, Apr 29, 2021
  8. 1/2 git.txt: fix synopsis of `--config-env` missing the equals signPatrick Steinhardt, Apr 29, 2021
  9. 2/2 git: support separate arg for `--config-env`'s valuePatrick Steinhardt, Apr 29, 2021
  10. Jeff KingApr 29, 2021
  11. Junio C HamanoApr 30, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.