git --list-cmds: collect command list in a string_list
authorNguyễn Thái Ngọc Duy <redacted>
Sun, 20 May 2018 18:39:58 +0000 (20:39 +0200)
committerJunio C Hamano <redacted>
Mon, 21 May 2018 04:23:14 +0000 (13:23 +0900)
commite5d7a61953c236fbc468bc1bb01383766d2cb55b
tree441d42216f06365007c97399104a25a56c6faf38
parent0089521cacd99db8018b7a31e205dad0bf0738c7
git --list-cmds: collect command list in a string_list

Instead of printing the command directly one by one, keep them in a
list and print at the end. This allows more modification before we
print out (e.g. sorting, removing duplicates or even excluding some
items).

Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
git.c
git clone https://git.99rst.org/PROJECT