Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-var(1) |
| 2 | ========== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 6 | git-var - Show a git logical variable |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 11 | 'git var' [ -l | <variable> ] |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | Prints a git logical variable. |
| 16 | |
| 17 | OPTIONS |
| 18 | ------- |
| 19 | -l:: |
Junio C Hamano | 07824ce | 2006-04-25 07:36:54 | [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 |
Junio C Hamano | 6de0ecd | 2006-04-27 20:10:43 | [diff] [blame] | 22 | as well. (However, the configuration variables listing functionality |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 23 | is deprecated in favor of `git config -l`.) |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 24 | |
| 25 | EXAMPLE |
| 26 | -------- |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 27 | $ git var GIT_AUTHOR_IDENT |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 28 | Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600 |
| 29 | |
| 30 | |
| 31 | VARIABLES |
| 32 | ---------- |
| 33 | GIT_AUTHOR_IDENT:: |
| 34 | The author of a piece of code. |
| 35 | |
| 36 | GIT_COMMITTER_IDENT:: |
| 37 | The person who put a piece of code into git. |
| 38 | |
Junio C Hamano | 3b70d3c | 2009-11-21 17:37:37 | [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 | |
| 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 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [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!:: |
Junio C Hamano | 3727619 | 2008-09-04 00:24:07 | [diff] [blame] | 58 | The passwd(5) gecos field is longer than a giant static buffer. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 59 | Your sysadmin must hate you!:: |
Junio C Hamano | 3727619 | 2008-09-04 00:24:07 | [diff] [blame] | 60 | The passwd(5) name field is longer than a giant static buffer. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 61 | |
Junio C Hamano | 9049d91 | 2008-05-29 02:09:50 | [diff] [blame] | 62 | SEE ALSO |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 63 | -------- |
Junio C Hamano | 35738e8 | 2008-01-07 07:55:46 | [diff] [blame] | 64 | linkgit:git-commit-tree[1] |
| 65 | linkgit:git-tag[1] |
| 66 | linkgit:git-config[1] |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 67 | |
| 68 | Author |
| 69 | ------ |
| 70 | Written by Eric Biederman <ebiederm@xmission.com> |
| 71 | |
| 72 | Documentation |
| 73 | -------------- |
| 74 | Documentation by Eric Biederman and the git-list <git@vger.kernel.org>. |
| 75 | |
| 76 | GIT |
| 77 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 78 | Part of the linkgit:git[1] suite |