format-patch: introduce --base=auto option
authorXiaolong Ye <xiaolong.ye@intel.com>
Tue, 26 Apr 2016 07:51:23 +0000 (15:51 +0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Apr 2016 17:51:50 +0000 (10:51 -0700)
commit3de665175f3433ccd1dadd4d5d09fa9553948e55
tree41b30294951a8a74f3aa46daed76ee1594b9feee
parentfa2ab86d18f16ab5e6d2f2cd6e8cc00460bada17
format-patch: introduce --base=auto option

Introduce --base=auto to record the base commit info automatically, the
base_commit will be the merge base of tip commit of the upstream branch
and revision-range specified in cmdline.

Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-format-patch.txt
builtin/log.c
t/t4014-format-patch.sh