]> git.ipfire.org Git - thirdparty/git.git/commit - help.c
help: align the longest command in the command listing
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 31 Jan 2019 09:23:49 +0000 (16:23 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Jan 2019 23:27:35 +0000 (15:27 -0800)
commit6195a76da4b0c58b320d8f7c3485ee51b0f2a8e6
tree55ae50b400a061caeb0b43269a13ad89be37c382
parent0d0ac3826a3bbb9247e39e12623bbcfdd722f24c
help: align the longest command in the command listing

"longest" is used to determine how many extra spaces we need to print
to keep the command description aligned. For the longest command, we
should print no extra space instead of one, or we'll get unaligned
output like this (notice the "checkout" line):

    grow, mark and tweak your common history
       branch     List, create, or delete branches
       checkout    Switch branches or restore working tree files
       commit     Record changes to the repository
       diff       Show changes between commits, commit and ...
       merge      Join two or more development histories together
       rebase     Reapply commits on top of another base tip
       tag        Create, list, delete or verify a tag ...

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c