[PATCH] rebase--interactive: Replace unportable 'tac' by a sed script.
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Apr 28, 2008, 07:44 UTC
- Message-ID
- <48158070.7090007@viscovery.net>
- In-Reply-To
- <739FA851-F7F5-4CF9-B384-25AA7022B0C2@silverinsanity.com>
From: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> --- Brian Gernhardt schrieb:
> - tac | \ > + perl -e 'print reverse <>' | \
Here's my try, which avoids the perl hammer. ;)
Sorry, I can't test this at the moment due to an unrelated breakage that I first have to chase down.
-- Hannes
PS: I picked the sed script from this patch by Simon 'corecode' Schubert:
http://article.gmane.org/gmane.comp.version-control.git/37074
git-rebase--interactive.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index 1751b08..a9ac332 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -469,7 +469,7 @@ create_extended_todo_list () { test -n "${last_parent:-}" -a "${last_parent:-}" != $SHORTUPSTREAM && \ echo reset $last_parent ) | \ - tac | \ + sed -ne '1!G;$p;h' | \ while read cmd args do : ${commit_mark_list:=} ${last_commit:=000}
-- 1.5.5.1.930.g66f94.dirty