diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2012-04-21 11:44:32 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-27 09:26:37 -0700 |
commit | 7e29b8254f08af820b2f0c3770836638ffe517ab (patch) | |
tree | a30cbc7e6997728a87f15093b13da82738a9dc91 /Documentation/git-column.txt | |
parent | b082687cbac951d31bdea346404db5d0b99a0b73 (diff) | |
download | git-7e29b8254f08af820b2f0c3770836638ffe517ab.tar.gz git-7e29b8254f08af820b2f0c3770836638ffe517ab.tar.xz |
Add column layout skeleton and git-column
A column option string consists of many token separated by either
a space or a comma. A token belongs to one of three groups:
- enabling: always, never and auto
- layout mode: currently plain (which does not layout at all)
- other future tuning flags
git-column can be used to pipe output to from a command that wants
column layout, but not to mess with its own output code. Simpler output
code can be changed to use column layout code directly.
Thanks-to: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-column.txt')
-rw-r--r-- | Documentation/git-column.txt | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Documentation/git-column.txt b/Documentation/git-column.txt new file mode 100644 index 000000000..9be16eea0 --- /dev/null +++ b/Documentation/git-column.txt @@ -0,0 +1,53 @@ +git-column(1) +============= + +NAME +---- +git-column - Display data in columns + +SYNOPSIS +-------- +[verse] +'git column' [--command=<name>] [--[raw-]mode=<mode>] [--width=<width>] + [--indent=<string>] [--nl=<string>] [--pading=<n>] + +DESCRIPTION +----------- +This command formats its input into multiple columns. + +OPTIONS +------- +--command=<name>:: + Look up layout mode using configuration variable column.<name> and + column.ui. + +--mode=<mode>:: + Specify layout mode. See configuration variable column.ui for option + syntax. + +--raw-mode=<n>:: + Same as --mode but take mode encoded as a number. This is mainly used + by other commands that have already parsed layout mode. + +--width=<width>:: + Specify the terminal width. By default 'git column' will detect the + terminal width, or fall back to 80 if it is unable to do so. + +--indent=<string>:: + String to be printed at the beginning of each line. + +--nl=<N>:: + String to be printed at the end of each line, + including newline character. + +--padding=<N>:: + The number of spaces between columns. One space by default. + + +Author +------ +Written by Nguyen Thai Ngoc Duy <pclouds@gmail.com> + +GIT +--- +Part of the linkgit:git[1] suite |