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

Re: [PATCH] gitweb/INSTALL: GITWEB_CONFIG_SYSTEM is for backward compatibility

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 16, 2013, 22:26 UTC
Message-ID
<20130416222600.GG29773@google.com>
In-Reply-To
<CAM9Z-nkbBS5qvbkocdGWj7rwtSxB86+R4jdjcBOxCU4YjtgZ1A@mail.gmail.com>
Drew Northup wrote:
>                             This is unobtrusive yet to the point.
I agree with the spirit.
[...]
Show 10 quoted lines
> --- a/Documentation/gitweb.conf.txt
> +++ b/Documentation/gitweb.conf.txt
> @@ -55,7 +55,8 @@ following order:
>     then fallback system-wide configuration file (defaults to
> '/etc/gitweb.conf').
> 
>  Values obtained in later configuration files override values obtained earlier
> -in the above sequence.
> +in the above sequence. This is different from many system-wide software
> +installations and will stay this way for historical reasons.

That makes it sound like the "per instance overrides common overrides built-in" cascading is what is unusual and what we need to apologize for.

How about something like the following? (It uses a BUGS section to make the warning easy to notice for people tracking down confusing behavior by searching for "gitweb.conf".)

diff --git i/Documentation/gitweb.conf.txt w/Documentation/gitweb.conf.txt
index eb63631..ea0526e 100644
--- i/Documentation/gitweb.conf.txt
+++ w/Documentation/gitweb.conf.txt
@@ -857,6 +857,13 @@ adding the following lines to your gitweb configuration file:
 	$known_snapshot_formats{'zip'}{'disabled'} = 1;
 	$known_snapshot_formats{'tgz'}{'compressor'} = ['gzip','-6'];
 
+BUGS
+----
+Debugging would be easier if the fallback configuration file
+(`/etc/gitweb.conf`) and environment variable to override its location
+('GITWEB_CONFIG_SYSTEM') had names reflecting their "fallback" role.
+The current names are kept to avoid breaking working setups.
+
 ENVIRONMENT
 -----------
 The location of per-instance and system-wide configuration files can be
Previous: Drew NorthupNext: Drew Northup
Message 17 of 34 in “Various typofixes”
  1. Various typofixesStefano Lattarini, Apr 11, 2013
  2. Eric SunshineApr 11, 2013
  3. Fix various typos and grammarosStefano Lattarini, Apr 11, 2013
  4. Junio C HamanoApr 12, 2013
  5. 0/10 Re: [PATCH v2] Fix various typos and grammarosJonathan Nieder, Apr 12, 2013
  6. 01/10 doc: various spelling fixesJonathan Nieder, Apr 12, 2013
  7. Junio C HamanoApr 12, 2013
  8. gitweb/INSTALL: Simplify description of GITWEB_CONFIG_SYSTEMJakub Narębski, Apr 12, 2013
  9. Drew NorthupApr 16, 2013
  10. Junio C HamanoApr 16, 2013
  11. Jakub NarębskiApr 16, 2013
  12. Drew NorthupApr 16, 2013
  13. Drew NorthupApr 16, 2013
  14. gitweb/INSTALL: GITWEB_CONFIG_SYSTEM is for backward compatibilityJakub Narębski, Apr 16, 2013
  15. Drew NorthupApr 16, 2013
  16. Drew NorthupApr 16, 2013
  17. Jonathan NiederApr 16, 2013
  18. Drew NorthupApr 18, 2013
  19. Junio C HamanoApr 18, 2013
  20. 02/10 git-remote-mediawiki: spelling fixesJonathan Nieder, Apr 12, 2013
  21. Matthieu MoyApr 12, 2013
  22. 03/10 contrib/subtree: fix spelling of accidentallyJonathan Nieder, Apr 12, 2013
  23. 04/10 obstack: fix spelling of similarJonathan Nieder, Apr 12, 2013
  24. 05/10 compat/regex: fix spelling and grammar in commentsJonathan Nieder, Apr 12, 2013
  25. 06/10 compat/nedmalloc: fix spelling in commentsJonathan Nieder, Apr 12, 2013
  26. Sebastian SchuberthApr 12, 2013
  27. 07/10 precompose-utf8: fix spelling of "want" in error messageJonathan Nieder, Apr 12, 2013
  28. 08/10 kwset: fix spelling in commentsJonathan Nieder, Apr 12, 2013
  29. 09/10 git-gui: fix spelling in commentsJonathan Nieder, Apr 12, 2013
  30. 10/10 Correct common spelling mistakes in comments and testsJonathan Nieder, Apr 12, 2013
  31. Junio C HamanoApr 12, 2013
  32. Junio C HamanoApr 12, 2013
  33. Stefano LattariniApr 12, 2013
  34. Junio C HamanoApr 12, 2013

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.