rebase: support automatic notes copying
[gitweb.git] / git-rebase--interactive.sh
index d72f549f61258e81f9a1be305441402f276c35ab..f69c062def7c2402a236b3eb0c136933c5bf7aae 100755 (executable)
@@ -570,6 +570,10 @@ do_next () {
                test ! -f "$DOTEST"/verbose ||
                        git diff-tree --stat $(cat "$DOTEST"/head)..HEAD
        } &&
+       {
+               git notes copy --for-rewrite=rebase < "$REWRITTEN_LIST" ||
+               true # we don't care if this copying failed
+       } &&
        if test -x "$GIT_DIR"/hooks/post-rewrite &&
                test -s "$REWRITTEN_LIST"; then
                "$GIT_DIR"/hooks/post-rewrite rebase < "$REWRITTEN_LIST"