Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 1 | git-var(1) |
Linus Torvalds | 71931c1 | 2005-07-15 14:57:09 -0700 | [diff] [blame] | 2 | ========== |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | c3f0baa | 2007-01-18 15:53:37 -0800 | [diff] [blame] | 6 | git-var - Show a git logical variable |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Jonathan Nieder | 9fabb6d | 2010-02-14 05:55:53 -0600 | [diff] [blame] | 11 | 'git var' ( -l | <variable> ) |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | Prints a git logical variable. |
| 16 | |
Jonas Fonseca | df8baa4 | 2005-10-03 19:16:30 +0200 | [diff] [blame] | 17 | OPTIONS |
| 18 | ------- |
| 19 | -l:: |
Petr Baudis | 4ee6bc9 | 2006-04-25 00:59:28 +0200 | [diff] [blame] | 20 | Cause the logical variables to be listed. In addition, all the |
| 21 | variables of the git configuration file .git/config are listed |
Petr Baudis | e1cbc46 | 2006-04-25 00:59:30 +0200 | [diff] [blame] | 22 | as well. (However, the configuration variables listing functionality |
Thomas Rast | ca76828 | 2010-01-07 17:49:12 +0100 | [diff] [blame] | 23 | is deprecated in favor of `git config -l`.) |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 24 | |
| 25 | EXAMPLE |
| 26 | -------- |
Jonathan Nieder | b1889c3 | 2008-06-30 01:09:04 -0500 | [diff] [blame] | 27 | $ git var GIT_AUTHOR_IDENT |
Jonas Fonseca | df8baa4 | 2005-10-03 19:16:30 +0200 | [diff] [blame] | 28 | Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600 |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 29 | |
| 30 | |
| 31 | VARIABLES |
| 32 | ---------- |
Jonas Fonseca | df8baa4 | 2005-10-03 19:16:30 +0200 | [diff] [blame] | 33 | GIT_AUTHOR_IDENT:: |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 34 | The author of a piece of code. |
| 35 | |
Jonas Fonseca | df8baa4 | 2005-10-03 19:16:30 +0200 | [diff] [blame] | 36 | GIT_COMMITTER_IDENT:: |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 37 | The person who put a piece of code into git. |
| 38 | |
Jonathan Nieder | 44fcb49 | 2009-11-11 18:01:27 -0600 | [diff] [blame] | 39 | GIT_EDITOR:: |
| 40 | Text editor for use by git commands. The value is meant to be |
| 41 | interpreted by the shell when it is used. Examples: `~/bin/vi`, |
| 42 | `$SOME_ENVIRONMENT_VARIABLE`, `"C:\Program Files\Vim\gvim.exe" |
| 43 | --nofork`. The order of preference is the `$GIT_EDITOR` |
| 44 | environment variable, then `core.editor` configuration, then |
| 45 | `$VISUAL`, then `$EDITOR`, and then finally 'vi'. |
| 46 | |
Jonathan Nieder | 6361824 | 2009-10-30 20:41:27 -0500 | [diff] [blame] | 47 | GIT_PAGER:: |
| 48 | Text viewer for use by git commands (e.g., 'less'). The value |
| 49 | is meant to be interpreted by the shell. The order of preference |
| 50 | is the `$GIT_PAGER` environment variable, then `core.pager` |
| 51 | configuration, then `$PAGER`, and then finally 'less'. |
| 52 | |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 53 | Diagnostics |
| 54 | ----------- |
| 55 | You don't exist. Go away!:: |
| 56 | The passwd(5) gecos field couldn't be read |
| 57 | Your parents must have hated you!:: |
Jonas Fonseca | 73bae1d | 2008-09-03 10:50:43 +0200 | [diff] [blame] | 58 | The passwd(5) gecos field is longer than a giant static buffer. |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 59 | Your sysadmin must hate you!:: |
Jonas Fonseca | 73bae1d | 2008-09-03 10:50:43 +0200 | [diff] [blame] | 60 | The passwd(5) name field is longer than a giant static buffer. |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 61 | |
Junio C Hamano | 56ae8df | 2008-05-28 16:55:27 -0700 | [diff] [blame] | 62 | SEE ALSO |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 63 | -------- |
Dan McGee | 5162e69 | 2007-12-29 00:20:38 -0600 | [diff] [blame] | 64 | linkgit:git-commit-tree[1] |
| 65 | linkgit:git-tag[1] |
| 66 | linkgit:git-config[1] |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 67 | |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 68 | GIT |
| 69 | --- |
Christian Couder | 9e1f0a8 | 2008-06-06 09:07:32 +0200 | [diff] [blame] | 70 | Part of the linkgit:git[1] suite |