Skip to content

Commit

Permalink
rebase -i: Use "test -n" instead of "test ! -z"
Browse files Browse the repository at this point in the history
It is a tiny bit simpler.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael Haggerty authored and Junio C Hamano committed Jan 14, 2010
1 parent aa7eaff commit 699f13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-rebase--interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 699f13c

Please sign in to comment.