threads / patch / 31162

patchgit-rebase.sh: fix typo

Subject: [PATCH] git-rebase.sh: fix typo

## tl;dr

3 messages between Aug 1, 2012 and Aug 2, 2012. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Ralf Thielow· Aug 1, 2012, 17:09 UTC · lore

Fix a typo in the error messages which is shown if it seems that a rebase is already in progress.

Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
---
 git-rebase.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to git-rebase.sh +1 −1
diff --git a/git-rebase.sh b/git-rebase.sh
index 0e6fd09..15da926 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -348,7 +348,7 @@ then
 	cmd_clear_stale_rebase="rm -fr \"$state_dir\""
 	die "
 $(eval_gettext 'It seems that there is already a $state_dir_base directory, and
-I wonder if you ware in the middle of another rebase.  If that is the
+I wonder if you are in the middle of another rebase.  If that is the
 case, please try
 	$cmd_live_rebase
 If that is not the case, please
-- 
1.7.12.rc1
Jiang Xin· Aug 1, 2012, 23:28 UTC · re: Ralf Thielow · lore

Re: [PATCH] git-rebase.sh: fix typo

2012/8/2 Ralf Thielow <ralf.thielow@gmail.com>:
>  $(eval_gettext 'It seems that there is already a $state_dir_base directory, and
> -I wonder if you ware in the middle of another rebase.  If that is the
> +I wonder if you are in the middle of another rebase.  If that is the

It's my fault in commit c7108b. I am curious how this happened, and find out that it comes from my copy/paste from code review this post: http://thread.gmane.org/gmane.comp.version-control.git/202010/focus=202048

If I did a more careful diff, especially word-diff, might find it earlier.
     $ git show --word-diff c7108b | head -122 | tail -1
     I wonder if you [-are-]{+ware+} in the middle of another rebase.
If that is the
-- 
Jiang Xin
Ralf Thielow· Aug 2, 2012, 17:41 UTC · re: Ralf Thielow · lore

Re: [PATCH] git-rebase.sh: fix typo

On Wed, Aug 1, 2012 at 7:09 PM, Ralf Thielow <ralf.thielow@gmail.com> wrote:
>  $(eval_gettext 'It seems that there is already a $state_dir_base directory, and
> -I wonder if you ware in the middle of another rebase.  If that is the
> +I wonder if you are in the middle of another rebase.  If that is the
>  case, please try

After looked at it again, I've noticed that there are also two whitespace characters after the sentence (same on another sentence in this message). I don't think that we need another patch for that, though, but it should be fixed when the message gets changed.

← back to recent threads