Re: What's cooking in git.git (Jul 2016, #01; Fri, 1)
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 2, 2016, 07:59 UTC
- Message-ID
- <alpine.DEB.2.20.1607020958210.12947@virtualbox>
- In-Reply-To
- <xmqqmvm0vry4.fsf@gitster.mtv.corp.google.com>
Hi,
On Fri, 1 Jul 2016, Junio C Hamano wrote:
Show 15 quoted lines
> * jk/common-main-2.8 (2016-07-01) 5 commits > - common-main: call git_setup_gettext() > - common-main: call restore_sigpipe_to_default() > - common-main: call sanitize_stdfds() > - common-main: call git_extract_argv0_path() > - add an extra level of indirection to main() > (this branch is used by jk/common-main.) > > There are certain house-keeping tasks that need to be performed at > the very beginning of any Git program, and programs that are not > built-in commands had to do them exactly the same way as "git" > potty does. It was easy to make mistakes in one-off standalone > programs (like test helpers). A common "main()" function that > calls cmd_main() of individual program has been introduced to > make it harder to make mistakes.
To make it easier, I pushed my version of the patch series (including the one required to be able to build with DEVELOPER=1) as 'common-main-maint' to https://github.com/dscho/git.
Ciao, Dscho