interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / Documentation / git-column.adoc

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