{"thread":{"id":"8925","subject":"[PATCH 2/3] rebase -i: actually show the diffstat when being verbose","startedAt":"2007-07-08T02:02:13Z","lastAt":"2007-07-08T02:02:13Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"46728","messageId":"Pine.LNX.4.64.0707080301460.4093@racer.site","threadId":"8925","inReplyTo":null,"subject":"[PATCH 2/3] rebase -i: actually show the diffstat when being verbose","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-08T02:02:13Z","receivedAt":"2007-07-08T02:02:13Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nThe \"while\" loop in the function do_rest is not supposed to ever be\nexited.  Instead, the function do_one checks if there is nothing left,\nand cleans up and exits if that is the case.  So the diffstat code\nbelongs there.\n\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n---\n git-rebase--interactive.sh |    8 ++++----\n 1 files changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh\nindex 67f2ee2..84148a9 100755\n--- a/git-rebase--interactive.sh\n+++ b/git-rebase--interactive.sh\n@@ -239,7 +239,10 @@ do_next () {\n \tfi &&\n \tmessage=\"$GIT_REFLOG_ACTION: $HEADNAME onto $SHORTONTO)\" &&\n \tgit update-ref -m \"$message\" $HEADNAME $NEWHEAD $OLDHEAD &&\n-\tgit symbolic-ref HEAD $HEADNAME &&\n+\tgit symbolic-ref HEAD $HEADNAME && {\n+\t\ttest ! -f \"$DOTEST\"/verbose ||\n+\t\t\tgit diff --stat $(cat \"$DOTEST\"/head)..HEAD\n+\t} &&\n \trm -rf \"$DOTEST\" &&\n \twarn \"Successfully rebased and updated $HEADNAME.\"\n \n@@ -251,9 +254,6 @@ do_rest () {\n \tdo\n \t\tdo_next\n \tdone\n-\ttest -f \"$DOTEST\"/verbose &&\n-\t\tgit diff --stat $(cat \"$DOTEST\"/head)..HEAD\n-\texit\n }\n \n while case $# in 0) break ;; esac\n-- \n1.5.3.rc0.2712.g125b7f\n"}]}