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

[PATCH 0/2] Show committer ident in some cases

From
SBSanti Béjar <sbejar@gmail.com>
Date
May 2, 2008, 18:22 UTC
Message-ID
<1209752541-19111-1-git-send-email-sbejar@gmail.com>
Hi *,
 This patch series tries to make more evident the committer ident
used in a commit to prevent using the wrong one.
The definition of "wrong committer" could be:
1) user.{name,email} or GIT_COMMITTER_{NAME,EMAIL} is not a wrong committer.
2) automatic without a domain name (user@hostname.(none)) is a wrong committer.
   (not handled with this patch series)
3) automatic or partially set ident:
   a) wrong committer for some users
   b) right committer for others
The different strategies are.. Show the committer:
1) always
2) when user.warn = yes (defaulting to yes)
3) when it is automatic
   a) always
   b) and different from parent
   c) and different from a list of valid committer idents
   d) and when user.WarnAutomatic = yes (defaulting to yes)

The first patch implements 3a The second patch implements 3d

I prefer 3a.
Santi
Santi Béjar (2):
  commit: Show committer if automatic
  user.warnautomatic: add config to control if the committer ident is
    shown
 Documentation/config.txt |    4 ++++
 builtin-commit.c         |   40 +++++++++++++++++++++++++++++++++++++---
 cache.h                  |    2 ++
 config.c                 |    9 +++++++++
 environment.c            |    2 ++
 ident.c                  |    3 +++
 t/t7502-commit.sh        |   31 +++++++++++++++++++++++++++++--
 7 files changed, 86 insertions(+), 5 deletions(-)
Next: Santi Béjar
Message 1 of 11 in “Show committer ident in some cases”
  1. 0/2 Show committer ident in some casesSanti Béjar, May 2, 2008
  2. 1/2 commit: Show committer if automaticSanti Béjar, May 2, 2008
  3. Junio C HamanoMay 3, 2008
  4. Santi BéjarMay 3, 2008
  5. 2/2 user.warnautomatic: add config to control if the committer ident is shownSanti Béjar, May 2, 2008
  6. Junio C HamanoMay 2, 2008
  7. Santi BéjarMay 2, 2008
  8. Junio C HamanoMay 2, 2008
  9. Santi BéjarMay 3, 2008
  10. Jeff KingMay 5, 2008
  11. Junio C HamanoMay 5, 2008

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.