OSDN Git Service

Merge branch 'jk/common-main' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 9 Sep 2016 04:35:50 +0000 (21:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Sep 2016 04:35:51 +0000 (21:35 -0700)
commitfaacc8efe503a470c0c549c7949824728d7f1461
treef30d2326414d09425902be4e3eb56bcdd0413241
parente0c1ceafc5bece92d35773a75fff59497e1d9bd5
parentde61cebde72a15b85b6e6a06ef4c3614b6afdac8
Merge branch 'jk/common-main' into maint

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.

* jk/common-main:
  mingw: declare main()'s argv as const
  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()
Makefile
compat/mingw.h
daemon.c
http-push.c
t/helper/test-date.c
t/helper/test-regex.c
t/helper/test-run-command.c
t/helper/test-submodule-config.c
upload-pack.c