Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-var(1) |
| 2 | ========== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [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 | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 11 | [verse] |
Junio C Hamano | 4aa0bcc | 2010-03-03 05:13:12 | [diff] [blame] | 12 | 'git var' ( -l | <variable> ) |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 13 | |
| 14 | DESCRIPTION |
| 15 | ----------- |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 16 | Prints a Git logical variable. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 17 | |
| 18 | OPTIONS |
| 19 | ------- |
| 20 | -l:: |
Junio C Hamano | 07824ce | 2006-04-25 07:36:54 | [diff] [blame] | 21 | Cause the logical variables to be listed. In addition, all the |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 22 | variables of the Git configuration file .git/config are listed |
Junio C Hamano | 6de0ecd | 2006-04-27 20:10:43 | [diff] [blame] | 23 | as well. (However, the configuration variables listing functionality |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 24 | is deprecated in favor of `git config -l`.) |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 25 | |
| 26 | EXAMPLE |
| 27 | -------- |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 28 | $ git var GIT_AUTHOR_IDENT |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 29 | Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600 |
| 30 | |
| 31 | |
| 32 | VARIABLES |
| 33 | ---------- |
| 34 | GIT_AUTHOR_IDENT:: |
| 35 | The author of a piece of code. |
| 36 | |
| 37 | GIT_COMMITTER_IDENT:: |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 38 | The person who put a piece of code into Git. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 39 | |
Junio C Hamano | 3b70d3c | 2009-11-21 17:37:37 | [diff] [blame] | 40 | GIT_EDITOR:: |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 41 | Text editor for use by Git commands. The value is meant to be |
Junio C Hamano | 3b70d3c | 2009-11-21 17:37:37 | [diff] [blame] | 42 | interpreted by the shell when it is used. Examples: `~/bin/vi`, |
| 43 | `$SOME_ENVIRONMENT_VARIABLE`, `"C:\Program Files\Vim\gvim.exe" |
| 44 | --nofork`. The order of preference is the `$GIT_EDITOR` |
| 45 | environment variable, then `core.editor` configuration, then |
Junio C Hamano | 4eda136 | 2012-04-23 20:55:49 | [diff] [blame] | 46 | `$VISUAL`, then `$EDITOR`, and then the default chosen at compile |
| 47 | time, which is usually 'vi'. |
| 48 | ifdef::git-default-editor[] |
| 49 | The build you are using chose '{git-default-editor}' as the default. |
| 50 | endif::git-default-editor[] |
Junio C Hamano | 3b70d3c | 2009-11-21 17:37:37 | [diff] [blame] | 51 | |
| 52 | GIT_PAGER:: |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 53 | Text viewer for use by Git commands (e.g., 'less'). The value |
Junio C Hamano | 3b70d3c | 2009-11-21 17:37:37 | [diff] [blame] | 54 | is meant to be interpreted by the shell. The order of preference |
| 55 | is the `$GIT_PAGER` environment variable, then `core.pager` |
Junio C Hamano | 4eda136 | 2012-04-23 20:55:49 | [diff] [blame] | 56 | configuration, then `$PAGER`, and then the default chosen at |
| 57 | compile time (usually 'less'). |
| 58 | ifdef::git-default-pager[] |
| 59 | The build you are using chose '{git-default-pager}' as the default. |
| 60 | endif::git-default-pager[] |
Junio C Hamano | 3b70d3c | 2009-11-21 17:37:37 | [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 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 68 | GIT |
| 69 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 70 | Part of the linkgit:git[1] suite |