diff options
author | Paul Tan <pyokagan@gmail.com> | 2015-08-04 21:51:54 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-04 22:02:11 -0700 |
commit | 13b97ea5f0bec8f529e8b819a24502023bfbacba (patch) | |
tree | c6dd728786159a0a612b972d94360892fbb2998a /builtin/pull.c | |
parent | 7e35dacbe392f0d5faf3c75e8964ae96aa4636a7 (diff) | |
download | git-13b97ea5f0bec8f529e8b819a24502023bfbacba.tar.gz git-13b97ea5f0bec8f529e8b819a24502023bfbacba.tar.xz |
builtin-am: invoke post-rewrite hook
Since 96e1948 (rebase: invoke post-rewrite hook, 2010-03-12), git-am.sh
will invoke the post-rewrite hook after it successfully finishes
applying all the queued patches.
To do this, when parsing a mail to extract its patch and metadata, in
--rebasing mode git-am.sh will also store the original commit ID in the
$state_dir/original-commit file. Once it applies and commits the patch,
the original commit ID, and the new commit ID, will be appended to the
$state_dir/rewritten file.
Once all of the queued mail have been processed, git-am.sh will then
invoke the post-rewrite hook with the contents of the
$state_dir/rewritten file.
Re-implement this in builtin/am.c.
Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pull.c')
0 files changed, 0 insertions, 0 deletions