@matheusbsbs / matheus-bagliano / commits / 699f13ca9a
Fork 0

rebase -i: Use "test -n" instead of "test ! -z"

It is a tiny bit simpler. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed Jan 14, 2010 at 06:54 UTC 699f13ca9af6b045826b8d44c2f3870affd7823d
1 file changed +1 -1
git-rebase--interactive.sh
+1 -1
@@ -156,7 +156,7 @@ pick_one () {
156 output git rev-parse --verify $sha1 || die "Invalid commit name: $sha1"
157 test -d "$REWRITTEN" &&
158 pick_one_preserving_merges "$@" && return
159 - if test ! -z "$REBASE_ROOT"
159 + if test -n "$REBASE_ROOT"
160 then
161 output git cherry-pick "$@"
162 return