Merge branch 'cc/apply-am'
authorJunio C Hamano <gitster@pobox.com>
Mon, 19 Sep 2016 20:47:17 +0000 (13:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Sep 2016 20:47:18 +0000 (13:47 -0700)
"git am" has been taught to make an internal call to "git apply"'s
innards without spawning the latter as a separate process.

* cc/apply-am: (41 commits)
builtin/am: use apply API in run_apply()
apply: learn to use a different index file
apply: pass apply state to build_fake_ancestor()
apply: refactor `git apply` option parsing
apply: change error_routine when silent
usage: add get_error_routine() and get_warn_routine()
usage: add set_warn_routine()
apply: don't print on stdout in verbosity_silent mode
apply: make it possible to silently apply
apply: use error_errno() where possible
apply: make some parsing functions static again
apply: move libified code from builtin/apply.c to apply.{c,h}
apply: rename and move opt constants to apply.h
builtin/apply: rename option parsing functions
builtin/apply: make create_one_file() return -1 on error
builtin/apply: make try_create_file() return -1 on error
builtin/apply: make write_out_results() return -1 on error
builtin/apply: make write_out_one_result() return -1 on error
builtin/apply: make create_file() return -1 on error
builtin/apply: make add_index_file() return -1 on error
...

1  2 
Makefile
builtin/am.c
git-compat-util.h
usage.c
diff --cc Makefile
Simple merge
diff --cc builtin/am.c
index 9daeb27225c04c28e33adc7b8e9071d825a490de,1819f4d7bff43ea8dd4d141985a77c8ad0378b71..ddd23badae2eea631db10e754c0fcd2ed2d449b4
@@@ -28,7 -28,7 +28,8 @@@
  #include "rerere.h"
  #include "prompt.h"
  #include "mailinfo.h"
+ #include "apply.h"
 +#include "string-list.h"
  
  /**
   * Returns 1 if the file is empty or does not exist, 0 otherwise.
Simple merge
diff --cc usage.c
Simple merge