]>
Commit | Line | Data |
---|---|---|
aed022ab | 1 | git-var(1) |
71931c19 | 2 | ========== |
aed022ab EB |
3 | |
4 | NAME | |
5 | ---- | |
c3f0baac | 6 | git-var - Show a git logical variable |
aed022ab EB |
7 | |
8 | ||
9 | SYNOPSIS | |
10 | -------- | |
9fabb6d7 | 11 | 'git var' ( -l | <variable> ) |
aed022ab EB |
12 | |
13 | DESCRIPTION | |
14 | ----------- | |
15 | Prints a git logical variable. | |
16 | ||
df8baa42 JF |
17 | OPTIONS |
18 | ------- | |
19 | -l:: | |
4ee6bc99 PB |
20 | Cause the logical variables to be listed. In addition, all the |
21 | variables of the git configuration file .git/config are listed | |
e1cbc46d | 22 | as well. (However, the configuration variables listing functionality |
ca768288 | 23 | is deprecated in favor of `git config -l`.) |
aed022ab EB |
24 | |
25 | EXAMPLE | |
26 | -------- | |
b1889c36 | 27 | $ git var GIT_AUTHOR_IDENT |
df8baa42 | 28 | Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600 |
aed022ab EB |
29 | |
30 | ||
31 | VARIABLES | |
32 | ---------- | |
df8baa42 | 33 | GIT_AUTHOR_IDENT:: |
aed022ab EB |
34 | The author of a piece of code. |
35 | ||
df8baa42 | 36 | GIT_COMMITTER_IDENT:: |
aed022ab EB |
37 | The person who put a piece of code into git. |
38 | ||
44fcb497 JN |
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 | ||
63618245 JN |
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 | ||
aed022ab EB |
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!:: | |
73bae1dc | 58 | The passwd(5) gecos field is longer than a giant static buffer. |
aed022ab | 59 | Your sysadmin must hate you!:: |
73bae1dc | 60 | The passwd(5) name field is longer than a giant static buffer. |
aed022ab | 61 | |
56ae8df5 | 62 | SEE ALSO |
aed022ab | 63 | -------- |
5162e697 DM |
64 | linkgit:git-commit-tree[1] |
65 | linkgit:git-tag[1] | |
66 | linkgit:git-config[1] | |
aed022ab EB |
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 | --- | |
9e1f0a85 | 78 | Part of the linkgit:git[1] suite |