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 | ---- |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [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 | -------- |
Martin von Zweigbergk | 7791a1d | 2011-07-01 22:38:26 -0400 | [diff] [blame] | 11 | [verse] |
Jonathan Nieder | 9fabb6d | 2010-02-14 05:55:53 -0600 | [diff] [blame] | 12 | 'git var' ( -l | <variable> ) |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 13 | |
| 14 | DESCRIPTION |
| 15 | ----------- |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 16 | Prints a Git logical variable. |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 17 | |
Jonas Fonseca | df8baa4 | 2005-10-03 19:16:30 +0200 | [diff] [blame] | 18 | OPTIONS |
| 19 | ------- |
| 20 | -l:: |
Petr Baudis | 4ee6bc9 | 2006-04-25 00:59:28 +0200 | [diff] [blame] | 21 | Cause the logical variables to be listed. In addition, all the |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 22 | variables of the Git configuration file .git/config are listed |
Petr Baudis | e1cbc46 | 2006-04-25 00:59:30 +0200 | [diff] [blame] | 23 | as well. (However, the configuration variables listing functionality |
Thomas Rast | ca76828 | 2010-01-07 17:49:12 +0100 | [diff] [blame] | 24 | is deprecated in favor of `git config -l`.) |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 25 | |
| 26 | EXAMPLE |
| 27 | -------- |
Jonathan Nieder | b1889c3 | 2008-06-30 01:09:04 -0500 | [diff] [blame] | 28 | $ git var GIT_AUTHOR_IDENT |
Jonas Fonseca | df8baa4 | 2005-10-03 19:16:30 +0200 | [diff] [blame] | 29 | Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600 |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 30 | |
| 31 | |
| 32 | VARIABLES |
| 33 | ---------- |
Jonas Fonseca | df8baa4 | 2005-10-03 19:16:30 +0200 | [diff] [blame] | 34 | GIT_AUTHOR_IDENT:: |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 35 | The author of a piece of code. |
| 36 | |
Jonas Fonseca | df8baa4 | 2005-10-03 19:16:30 +0200 | [diff] [blame] | 37 | GIT_COMMITTER_IDENT:: |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 38 | The person who put a piece of code into Git. |
Eric W. Biederman | aed022a | 2005-07-14 18:55:09 -0600 | [diff] [blame] | 39 | |
Jonathan Nieder | 44fcb49 | 2009-11-11 18:01:27 -0600 | [diff] [blame] | 40 | GIT_EDITOR:: |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 41 | Text editor for use by Git commands. The value is meant to be |
Jonathan Nieder | 44fcb49 | 2009-11-11 18:01:27 -0600 | [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 |
Jonathan Nieder | 4e0ce4d | 2012-03-31 03:42:34 -0500 | [diff] [blame] | 46 | `$VISUAL`, then `$EDITOR`, and then the default chosen at compile |
| 47 | time, which is usually 'vi'. |
Jonathan Nieder | 5b58619 | 2012-03-31 03:44:53 -0500 | [diff] [blame] | 48 | ifdef::git-default-editor[] |
| 49 | The build you are using chose '{git-default-editor}' as the default. |
| 50 | endif::git-default-editor[] |
Jonathan Nieder | 44fcb49 | 2009-11-11 18:01:27 -0600 | [diff] [blame] | 51 | |
Jonathan Nieder | 6361824 | 2009-10-30 20:41:27 -0500 | [diff] [blame] | 52 | GIT_PAGER:: |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 53 | Text viewer for use by Git commands (e.g., 'less'). The value |
Jonathan Nieder | 6361824 | 2009-10-30 20:41:27 -0500 | [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` |
Jonathan Nieder | 4e0ce4d | 2012-03-31 03:42:34 -0500 | [diff] [blame] | 56 | configuration, then `$PAGER`, and then the default chosen at |
| 57 | compile time (usually 'less'). |
Jonathan Nieder | 5b58619 | 2012-03-31 03:44:53 -0500 | [diff] [blame] | 58 | ifdef::git-default-pager[] |
| 59 | The build you are using chose '{git-default-pager}' as the default. |
| 60 | endif::git-default-pager[] |
Jonathan Nieder | 6361824 | 2009-10-30 20:41:27 -0500 | [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 |