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

[PATCH v5 0/3] config: add '--sources' option to print the source of a config value

From
larsxschneider@gmail.com <larsxschneider@gmail.com>
Date
Feb 17, 2016, 08:57 UTC
Message-ID
<1455699468-45443-1-git-send-email-larsxschneider@gmail.com>
From: Lars Schneider <larsxschneider@gmail.com>
diff to v4:
* improve wording of "exit code" cleanup commit message (Thanks Peff)
* remove t1300 "--show-origin" test teardown (Thanks Peff)
* fix no parameter function prototype (Thanks Ramsay)
* use doublequotes instead of tabs to test quoted paths (Thanks Junio)

I though a while about Ramsay's suggestion to restore the old error messages for config reads via stdin. Since reading the config via stdin is not that common I don't think the increased complexity is worth the effort. Unless Ramsay or someone else feels strongly about it, I would like to proceed and keep the new error messages

Thanks for the review, Lars

Lars Schneider (3):
  t: do not hide Git's exit code in tests using 'nul_to_q'
  config: add 'type' to config_source struct that identifies config type
  config: add '--show-origin' option to print the origin of a config
    value
 Documentation/git-config.txt |  15 ++--
 builtin/config.c             |  33 +++++++++
 cache.h                      |   6 +-
 config.c                     |  36 +++++++---
 submodule-config.c           |   4 +-
 t/t1300-repo-config.sh       | 161 ++++++++++++++++++++++++++++++++++++++++++-
 t/t1308-config-set.sh        |   4 +-
 t/t7008-grep-binary.sh       |   3 +-
 8 files changed, 236 insertions(+), 26 deletions(-)

-- 2.5.1

Next: larsxschneider@gmail.com
Message 1 of 7 in “config: add '--sources' option to print the source of a config value”
  1. 0/3 config: add '--sources' option to print the source of a config valuelarsxschneider@gmail.com, Feb 17, 2016
  2. 1/3 t: do not hide Git's exit code in tests using 'nul_to_q'larsxschneider@gmail.com, Feb 17, 2016
  3. 2/3 config: add 'type' to config_source struct that identifies config typelarsxschneider@gmail.com, Feb 17, 2016
  4. Junio C HamanoFeb 17, 2016
  5. Junio C HamanoFeb 17, 2016
  6. Lars SchneiderFeb 18, 2016
  7. 3/3 config: add '--show-origin' option to print the origin of a config valuelarsxschneider@gmail.com, Feb 17, 2016

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.