Skip to contentSkip to conversation

git-rebase.sh: fix typo

PATCH In review Ralf Thielow 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-rebase.sh: fix typo

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

---
 git-rebase.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
git-rebase.sh +1 -1
index 0e6fd09..15da926 100755
@@ -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
Signature · 1 line
1.7.12.rc1
#1 lore raw

git-rebase.sh then · line 352

Quoted 4 lines · Ralf Thielow

$(eval_gettext 'It seems that there is already a $state_dir_base directory, and

git-rebase.sh +1 -1
-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.

#2 lore raw
In reply to Ralf Thielow

2012/8/2 Ralf Thielow <[email protected]>:

git-rebase.sh then · line 351

Quoted 3 lines

$(eval_gettext 'It seems that there is already a $state_dir_base directory, and

git-rebase.sh +1 -1
-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
Signature · 1 line
Jiang Xin