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

Re: [PATCH] user.default: New config to prevent using the default values for user.*

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 5, 2008, 21:29 UTC
Message-ID
<7vr6eolv0r.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1204744684-2043-1-git-send-email-sbejar@gmail.com>
Santi Béjar <sbejar@gmail.com> writes:
Show 5 quoted lines
> +user.default::
> +	If false the defaults values for user.email and user.name are not
> +	used. Useful when you want a different email/name for each
> +	repository, normally set in the global config file.
> +

Aren't there other configuration variables that you might want to tweak per repository?

Perhaps you can make git-init run a post-init hook script by default, and have ~/.gitconfig specify the location of it, and have it do whatever custom settings to the per-repository configuration file?

Wouldn't that be a more generally useful thing to do, instead of adding special-purpose configuration variables like this?

If we go that alternate route, I would imagine that we would need to add "--no-post-init" flag to git-init (and probably an environment GIT_NO_POST_INIT) so that git-clone and others that run git-init internally can disable the hook if they want to.

Previous: Santi BéjarNext: Santi Béjar
Message 16 of 23 in “user.default: New config to prevent using the default values for user.*”
  1. user.default: New config to prevent using the default values for user.*Santi Béjar, Mar 5, 2008
  2. Jon LoeligerMar 5, 2008
  3. Santi BéjarMar 5, 2008
  4. Johannes SchindelinMar 5, 2008
  5. Daniel BarkalowMar 5, 2008
  6. Santi BéjarMar 5, 2008
  7. Alex RiesenMar 5, 2008
  8. Santi BéjarMar 6, 2008
  9. Alex RiesenMar 7, 2008
  10. Santi BéjarMar 8, 2008
  11. Johannes SchindelinMar 8, 2008
  12. Junio C HamanoMar 8, 2008
  13. Johannes SchindelinMar 8, 2008
  14. Jakub NarebskiMar 5, 2008
  15. Santi BéjarMar 5, 2008
  16. Junio C HamanoMar 5, 2008
  17. Santi BéjarMar 5, 2008
  18. Junio C HamanoMar 5, 2008
  19. Santi BéjarMar 5, 2008
  20. Junio C HamanoMar 5, 2008
  21. Santi BéjarMar 5, 2008
  22. Junio C HamanoMar 6, 2008
  23. Santi BéjarMar 6, 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.