1GIT-COLUMN(1) Git Manual GIT-COLUMN(1)
2
3
4
6 git-column - Display data in columns
7
9 git column [--command=<name>] [--[raw-]mode=<mode>] [--width=<width>]
10 [--indent=<string>] [--nl=<string>] [--padding=<n>]
11
12
14 This command formats the lines of its standard input into a table with
15 multiple columns. Each input line occupies one cell of the table. It is
16 used internally by other git commands to format output into columns.
17
19 --command=<name>
20 Look up layout mode using configuration variable column.<name> and
21 column.ui.
22
23 --mode=<mode>
24 Specify layout mode. See configuration variable column.ui for
25 option syntax in git-config(1).
26
27 --raw-mode=<n>
28 Same as --mode but take mode encoded as a number. This is mainly
29 used by other commands that have already parsed layout mode.
30
31 --width=<width>
32 Specify the terminal width. By default git column will detect the
33 terminal width, or fall back to 80 if it is unable to do so.
34
35 --indent=<string>
36 String to be printed at the beginning of each line.
37
38 --nl=<N>
39 String to be printed at the end of each line, including newline
40 character.
41
42 --padding=<N>
43 The number of spaces between columns. One space by default.
44
46 Format data by columns:
47
48 $ seq 1 24 | git column --mode=column --padding=5
49 1 4 7 10 13 16 19 22
50 2 5 8 11 14 17 20 23
51 3 6 9 12 15 18 21 24
52
53
54 Format data by rows:
55
56 $ seq 1 21 | git column --mode=row --padding=5
57 1 2 3 4 5 6 7
58 8 9 10 11 12 13 14
59 15 16 17 18 19 20 21
60
61
62 List some tags in a table with unequal column widths:
63
64 $ git tag --list 'v2.4.*' --column=row,dense
65 v2.4.0 v2.4.0-rc0 v2.4.0-rc1 v2.4.0-rc2 v2.4.0-rc3
66 v2.4.1 v2.4.10 v2.4.11 v2.4.12 v2.4.2
67 v2.4.3 v2.4.4 v2.4.5 v2.4.6 v2.4.7
68 v2.4.8 v2.4.9
69
70
72 Part of the git(1) suite
73
74
75
76Git 2.21.0 02/24/2019 GIT-COLUMN(1)