Re: [PATCH] fix many comment typos

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] fix many comment typos

From: Jim Meyering <hidden>
Date: 2016-06-15 22:53:58

Junio C Hamano wrote:
Jim Meyering [off-list ref] writes:
quoted
Use http://github.com/lyda/misspell-check to identify many typos.
Culprits identified and fixed automatically using these commands,
converting diagnostics to single-quote-safe sed -i commands:

git ls-files|misspellings -f -|perl -nl \
  -e '/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/ or next;' \
  -e '($file,$n,$l,$r)=($1,$2,$3,$4); $q="'\''"; $r=~s/$q/$q\\$q$q/g;'\
  -e 'print "sed -i $q${n}s!$l!$r!$q $file"' \
 | grep -vE '\.po$|pt_BR' > k

Filter out s/seeked/sought/ false positives (they relate to cg-seek):
  grep -vE 'seeked' k > j && mv j k
??
quoted
diff --git a/Documentation/RelNotes/1.5.4.4.txt
b/Documentation/RelNotes/1.5.4.4.txt
index 323c1a8..83453db 100644
--- a/Documentation/RelNotes/1.5.4.4.txt
+++ b/Documentation/RelNotes/1.5.4.4.txt
@@ -21,7 +21,7 @@ Fixes since v1.5.4.3

  * "git send-email" in 1.5.4.3 issued a bogus empty In-Reply-To: header.

- * "git bisect" showed mysterious "won't bisect on seeked tree" error message.
+ * "git bisect" showed mysterious "won't bisect on sought tree" error message.
??
Well caught.

I confess.
I manually reverted those two changes and missed the third.
30 lashes.

Perhaps a more palatable change, here and in the other two places:
s/seeked/cg-seek'd/, i.e.,

- * "git bisect" showed mysterious "won't bisect on seeked tree" error message.
+ * "git bisect" showed mysterious "won't bisect on cg-seek'd tree" error message.

Then, if someone does this again, it will be more obvious that
it is not a typo.

If you like that, I'll gladly redo the patch accordingly.

Re: [PATCH] fix many comment typos

From: René Scharfe <hidden>
Date: 2016-06-15 22:53:58

Am 03.06.2012 09:11, schrieb Jim Meyering:
Perhaps a more palatable change, here and in the other two places:
s/seeked/cg-seek'd/, i.e.,

- * "git bisect" showed mysterious "won't bisect on seeked tree" error message.
+ * "git bisect" showed mysterious "won't bisect on cg-seek'd tree" error message.

Then, if someone does this again, it will be more obvious that
it is not a typo.
This change is only valid if the command "git bisect" at some point 
printed "won't bisect on cg-seek'd tree" instead of "won't bisect on 
seeked tree".  And even then, it doesn't make now sense to change 
already published release notes (Documentation/RelNotes/1.5.4.4.txt), 
after the fact.

René
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help