git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: rpjday@crashcourse.ca
To: git@vger.kernel.org
Subject: couple questions about git "logical variables" and "git var"
Date: Thu, 05 Oct 2017 05:11:04 -0400	[thread overview]
Message-ID: <20171005051104.Horde.8J0J7-XC6jD4AOgtYrou3Na@crashcourse.ca> (raw)

   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.






             reply	other threads:[~2017-10-05  9:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-05  9:11 rpjday [this message]
2017-10-05  9:56 ` couple questions about git "logical variables" and "git var" Jeff King
2017-10-06  2:35   ` Jonathan Nieder
2017-10-06  4:33     ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171005051104.Horde.8J0J7-XC6jD4AOgtYrou3Na@crashcourse.ca \
    --to=rpjday@crashcourse.ca \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).