git-column.txt 2.0 KB

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