repository: initialize the_repository in main()
commitb2f0eceecf266e60fa95970e0973a8f23f911fb1
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 3 Mar 2018 11:35:54 +0000 (3 18:35 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Mar 2018 19:14:03 +0000 (5 11:14 -0800)
treeca03c9b0c360f210b0005112c2b01278c7b9c0a7
parentb2e45c695d09f6a31ce09347ae0a5d2cdfe9dd4e
repository: initialize the_repository in main()

This simplifies initialization of struct repository and anything
inside. Easier to read. Easier to add/remove fields.

Everything will go through main() common-main.c so this should cover all
programs, including t/helper.

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