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

couple questions about git "logical variables" and "git var"

From
rpjday@crashcourse.ca <rpjday@crashcourse.ca>
Date
Oct 5, 2017, 09:11 UTC
Message-ID
<20171005051104.Horde.8J0J7-XC6jD4AOgtYrou3Na@crashcourse.ca>
   i just ran across "git var" for the first time, and it seems a bit weird.
it refers to the (apparently) four git "logical variables":
  - GIT_AUTHOR_IDENT
  - GIT_COMMITTER_IDENT
  - GIT_EDITOR
  - GIT_PAGER

first question -- what is it about precisely those four variables that makes them "logical" variables in git parlance? just those four? no others?

   also, the man page "man git-var" seems wrong:
"OPTIONS
   -l
     Cause the logical variables to be listed. In addition, all the variables
     of the Git configuration file .git/config are listed as well."

no, if i run "git var -l", i see not only the logical variables, but i see *all* of the available config settings (system and global), not just those in .git/config (unless i'm misreading what that is supposed to mean).

   thoughts?
rday

p.s. yes, i realize this command is deprecated in favour of "git config -l", but as long as it's available, it should work as described in the man page.

Next: Jeff King
Message 1 of 4 in “couple questions about git "logical variables" and "git var"”
  1. rpjday@crashcourse.caOct 5, 2017
  2. Jeff KingOct 5, 2017
  3. Jonathan NiederOct 6, 2017
  4. Jeff KingOct 6, 2017

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.