{"thread":{"id":"22380","subject":"[PATCH] rebase: replace antiquated sed invocation","startedAt":"2010-01-25T07:06:31Z","lastAt":"2010-01-25T07:06:31Z","messageCount":1,"participants":["Stephen Boyd"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"132579","messageId":"1264403191-11523-1-git-send-email-bebarino@gmail.com","threadId":"22380","inReplyTo":null,"subject":"[PATCH] rebase: replace antiquated sed invocation","fromName":"Stephen Boyd","fromEmail":"bebarino@gmail.com","sentAt":"2010-01-25T07:06:31Z","receivedAt":"2010-01-25T07:06:31Z","isPatch":true,"sender":{"key":"bebarino@gmail.com","avatar":"https://avatars.githubusercontent.com/u/38832?v=4"},"body":"Use the modern form of printing a commit subject instead of piping\nthe output of rev-list to sed.\n\nSigned-off-by: Stephen Boyd <bebarino@gmail.com>\n---\n git-rebase.sh |    6 ++----\n 1 files changed, 2 insertions(+), 4 deletions(-)\n\ndiff --git a/git-rebase.sh b/git-rebase.sh\nindex eddc028..b5d9178 100755\n--- a/git-rebase.sh\n+++ b/git-rebase.sh\n@@ -85,10 +85,8 @@ continue_merge () {\n \t\t\tprintf \"Already applied: %0${prec}d \" $msgnum\n \t\tfi\n \tfi\n-\tif test -z \"$GIT_QUIET\"\n-\tthen\n-\t\tgit rev-list --pretty=oneline -1 \"$cmt\" | sed -e 's/^[^ ]* //'\n-\tfi\n+\ttest -z \"$GIT_QUIET\" &&\n+\tgit log --format=%s -1 \"$cmt\"\n \n \tprev_head=`git rev-parse HEAD^0`\n \t# save the resulting commit so we can read-tree on it later\n-- \n1.6.6.1.436.gaba7d\n"}]}