From: Michael Haggerty Date: Thu, 14 Jan 2010 05:54:43 +0000 (+0100) Subject: rebase -i: Use "test -n" instead of "test ! -z" X-Git-Tag: v1.7.0-rc0~68^2~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=699f13ca9af6b045826b8d44c2f3870affd7823d;p=git.git rebase -i: Use "test -n" instead of "test ! -z" It is a tiny bit simpler. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index 6fd3105b5..2e1b2fa3c 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -156,7 +156,7 @@ pick_one () { output git rev-parse --verify $sha1 || die "Invalid commit name: $sha1" test -d "$REWRITTEN" && pick_one_preserving_merges "$@" && return - if test ! -z "$REBASE_ROOT" + if test -n "$REBASE_ROOT" then output git cherry-pick "$@" return