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

[PATCH drop] git-config: respect other options after -l, most notably --file

From
Gerrit Pape <pape@smarden.org>
Date
Oct 12, 2007, 11:37 UTC
Message-ID
<20071012113741.30469.qmail@a4342ff4e2e64a.315fe32.mid.smarden.org>
In-Reply-To
<20071009224943.GH31659@planck.djpig.de>
On Wed, Oct 10, 2007 at 12:49:43AM +0200, Frank Lichtenheld wrote:
Show 14 quoted lines
> On Tue, Oct 09, 2007 at 12:50:24PM +0000, Gerrit Pape wrote:
> > When git-commit is seeing the -l|--list option, it stops reading the
> > following command line options.  So although they should be the same,
> > the following commands act differently:
> > 
> >  git config --file ../repo2/.git/config -l
> >  git config -l --file ../repo2/.git/config
> > 
> > This patch delays the 'list all variables' to after the command line
> > options have been processed.
> 
> Note that I have posted a conflicting patch for the same problem some
> days ago. I think my patch is more consistent with the behaviour for
> other options.
Fair enough.  Regards, Gerrit.
Previous: Frank Lichtenheld
Message 4 of 4 in “git-config: respect other options after -l, most notably --file”
  1. git-config: respect other options after -l, most notably --fileGerrit Pape, Oct 9, 2007
  2. Johannes SchindelinOct 9, 2007
  3. Frank LichtenheldOct 9, 2007
  4. git-config: respect other options after -l, most notably --fileGerrit Pape, Oct 12, 2007

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.