man-pages/man1/git-column.1.html
2021-03-31 01:06:50 +01:00

191 lines
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of GIT-COLUMN</TITLE>
</HEAD><BODY>
<H1>GIT-COLUMN</H1>
Section: Git Manual (1)<BR>Updated: 03/04/2021<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
git-column - Display data in columns
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<PRE>
<I>git column</I> [--command=&lt;name&gt;] [--[raw-]mode=&lt;mode&gt;] [--width=&lt;width&gt;]
[--indent=&lt;string&gt;] [--nl=&lt;string&gt;] [--padding=&lt;n&gt;]
</PRE>
<P>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
This command formats the lines of its standard input into a table with multiple columns. Each input line occupies one cell of the table. It is used internally by other git commands to format output into columns.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
--command=&lt;name&gt;
<DL COMPACT><DT id="1"><DD>
Look up layout mode using configuration variable column.&lt;name&gt; and column.ui.
</DL>
<P>
--mode=&lt;mode&gt;
<DL COMPACT><DT id="2"><DD>
Specify layout mode. See configuration variable column.ui for option syntax in
<B><A HREF="/cgi-bin/man/man2html?1+git-config">git-config</A></B>(1).
</DL>
<P>
--raw-mode=&lt;n&gt;
<DL COMPACT><DT id="3"><DD>
Same as --mode but take mode encoded as a number. This is mainly used by other commands that have already parsed layout mode.
</DL>
<P>
--width=&lt;width&gt;
<DL COMPACT><DT id="4"><DD>
Specify the terminal width. By default
<I>git column</I>
will detect the terminal width, or fall back to 80 if it is unable to do so.
</DL>
<P>
--indent=&lt;string&gt;
<DL COMPACT><DT id="5"><DD>
String to be printed at the beginning of each line.
</DL>
<P>
--nl=&lt;N&gt;
<DL COMPACT><DT id="6"><DD>
String to be printed at the end of each line, including newline character.
</DL>
<P>
--padding=&lt;N&gt;
<DL COMPACT><DT id="7"><DD>
The number of spaces between columns. One space by default.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXAMPLES</H2>
<P>
Format data by columns:
<P>
<DL COMPACT><DT id="8"><DD>
<PRE>
$ seq 1 24 | git column --mode=column --padding=5
1 4 7 10 13 16 19 22
2 5 8 11 14 17 20 23
3 6 9 12 15 18 21 24
</PRE>
</DL>
<P>
<P>
Format data by rows:
<P>
<DL COMPACT><DT id="9"><DD>
<PRE>
$ seq 1 21 | git column --mode=row --padding=5
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
</PRE>
</DL>
<P>
<P>
List some tags in a table with unequal column widths:
<P>
<DL COMPACT><DT id="10"><DD>
<PRE>
$ git tag --list 'v2.4.*' --column=row,dense
v2.4.0 v2.4.0-rc0 v2.4.0-rc1 v2.4.0-rc2 v2.4.0-rc3
v2.4.1 v2.4.10 v2.4.11 v2.4.12 v2.4.2
v2.4.3 v2.4.4 v2.4.5 v2.4.6 v2.4.7
v2.4.8 v2.4.9
</PRE>
</DL>
<P>
<A NAME="lbAG">&nbsp;</A>
<H2>GIT</H2>
<P>
Part of the <B><A HREF="/cgi-bin/man/man2html?1+git">git</A></B>(1) suite
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="11"><A HREF="#lbAB">NAME</A><DD>
<DT id="12"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="13"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="14"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="15"><A HREF="#lbAF">EXAMPLES</A><DD>
<DT id="16"><A HREF="#lbAG">GIT</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:13 GMT, March 31, 2021
</BODY>
</HTML>