Documentation and Code: Fix misspellings and grammar
---
Let me know if you'd like me to break this up into separate patches. I ran 'git grep occured' to make sure I got all of them. Do you think it's a problem to fix misspellings in printf output?
Documentation/git-diff.txt | 2 +- Documentation/technical/api-credentials.txt | 2 +- compat/regex/regcomp.c | 4 ++-- compat/regex/regex_internal.c | 6 +++--- gitweb/gitweb.perl | 2 +- perl/Git/I18N.pm | 2 +- po/README | 6 +++--- sequencer.c | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-)
Documentation/git-diff.txt +1 -1
@@ -38,7 +38,7 @@ directories. This behavior can be forced by --no-index. commit relative to the named <commit>. Typically you would want comparison with the latest commit, so if you do not give <commit>, it defaults to HEAD. - If HEAD does not exist (e.g. unborned branches) and + If HEAD does not exist (e.g. unborn branches) and <commit> is not given, it shows all staged changes. --staged is a synonym of --cached.
Documentation/technical/api-credentials.txt +1 -1
@@ -113,7 +113,7 @@ int foo_login(struct foo_connection *f) break; default: /* - * Some other error occured. We don't know if the + * Some other error occurred. We don't know if the * credential is good or bad, so report nothing to the * credential subsystem. */
compat/regex/regcomp.c +2 -2
@@ -2095,7 +2095,7 @@ peek_token_bracket (re_token_t *token, re_string_t *input, reg_syntax_t syntax)/* Entry point of the parser. Parse the regular expression REGEXP and return the structure tree. -If an error is occured, ERR is set by error code, and return NULL. +If an error has occurred, ERR is set by error code, and return NULL. This function build the following tree, from regular expression <reg_exp>: CAT / \
@@ -3715,7 +3715,7 @@ build_charclass_op (re_dfa_t *dfa, RE_TRANSLATE_TYPE trans,/* This is intended for the expressions like "a{1,3}". Fetch a number from `input', and return the number. Return -1, if the number field is empty like "{,1}". -Return -2, If an error is occured. */ +Return -2, If an error has occurred. */ static int fetch_number (re_string_t *input,re_token_t *token,reg_syntax_t syntax)
compat/regex/regex_internal.c +3 -3
@@ -1284,7 +1284,7 @@ re_node_set_merge (re_node_set *dest, const re_node_set *src)/* Insert the new element ELEM to the re_node_set* SET. SET should not already have ELEM. -return -1 if an error is occured, return 1 otherwise. */ +return -1 if an error has occurred, return 1 otherwise. */ static int internal_function
@@ -1341,7 +1341,7 @@ re_node_set_insert (re_node_set *set, int elem)/* Insert the new element ELEM to the re_node_set* SET. SET should not already have any element greater than or equal to ELEM. -Return -1 if an error is occured, return 1 otherwise. */ +Return -1 if an error has occurred, return 1 otherwise. */ static int internal_function
@@ -1416,7 +1416,7 @@ re_node_set_remove_at (re_node_set *set, int idx)/* Add the token TOKEN to dfa->nodes, and return the index of the token. -Or return -1, if an error will be occured. */ +Or return -1, if an error has occurred. */ static int internal_function
gitweb/gitweb.perl +1 -1
@@ -1132,7 +1132,7 @@ sub handle_errors_html { # to avoid infinite loop where error occurs in die_error, # change handler to default handler, disabling handle_errors_html - set_message("Error occured when inside die_error:\n$msg"); + set_message("Error occurred when inside die_error:\n$msg"); # you cannot jump out of die_error when called as error handler; # the subroutine set via CGI::Carp::set_message is called _after_
perl/Git/I18N.pm +1 -1
@@ -68,7 +68,7 @@ Git::I18N - Perl interface to Git's Gettext localizations print __("Welcome to Git!\n"); - printf __("The following error occured: %s\n"), $error; + printf __("The following error occurred: %s\n"), $error; =head1 DESCRIPTION
po/README +3 -3
@@ -232,7 +232,7 @@ Shell: # To interpolate variables: details="oh noes" - eval_gettext "An error occured: \$details"; echo + eval_gettext "An error occurred: \$details"; echo In addition we have wrappers for messages that end with a trailing newline. I.e. you could write the above as:
@@ -242,7 +242,7 @@ Shell: # To interpolate variables: details="oh noes" - eval_gettextln "An error occured: \$details" + eval_gettextln "An error occurred: \$details" More documentation about the interface is available in the GNU info page: `info '(gettext)sh'`. Looking at git-am.sh (the first shell
@@ -257,7 +257,7 @@ Perl: use Git::I18N; print __("Welcome to Git!\n"); - printf __("The following error occured: %s\n"), $error; + printf __("The following error occurred: %s\n"), $error; Run `perldoc perl/Git/I18N.pm` for more info.
sequencer.c +1 -1
@@ -131,7 +131,7 @@ static void print_advice(int show_hint, struct replay_opts *opts)if (msg) {fprintf (stderr,"%s\n" , msg);/* -* A conflict has occured but the porcelain +* A conflict has occurred but the porcelain * (typically rebase --interactive) wants to take care * of the commit itself so remove CHERRY_PICK_HEAD */
Signature · 1 line
1.7.7.5 (Apple Git-26)
Quoted 4 lines · Leila Muhtasib
Signed-off-by Leila Muhtasib <[email protected]>---
Let me know if you'd like me to break this up into separate patches. I ran 'git grep occured' to make sure I got all of them.
I am tempted to suggest "one word per patch" ;-)
Also you might want to take a look at
http://thread.gmane.org/gmane.comp.version-control.git/199033
Quoted 1 line
Do you think it's a problem to fix misspellings in printf output?
It depends, but in a sense, typos in comments are a lot lower priority (nobody is hurt if we do not fix them, and if such a fix interferes with topics in flight, it is more nuisance than it is worth and it would be greatly appreciated if you hold off typofixes until the dust settles).
Program output affects the end user experience, so it is more important.
Changes to strings marked with _() for l10n should come early in the development cycle so that translators have enough time to prepare for it before the release.
Quoted 1 line · Junio C Hamano
I am tempted to suggest "one word per patch" ;-)
I can do that, no problem. That's my preference too.
Quoted 4 lines
Also you might want to take a look at
http://thread.gmane.org/gmane.comp.version-control.git/199033
Context is important, I agree.
Quoted 9 lines
Quoted 2 lines
Do you think it's a problem to fix misspellings in printf output?
It depends, but in a sense, typos in comments are a lot lower priority (nobody is hurt if we do not fix them, and if such a fix interferes with topics in flight, it is more nuisance than it is worth and it would be greatly appreciated if you hold off typofixes until the dust settles).
That makes total sense. I'll hold off on typos in comments. Actually, the only reason I included them was because they showed up when I did a 'git grep <misspelled word>', so I went ahead and fixed everything. How do I know when the dust has settled? Is that after you release a version? 1.7.11 released on June 17, so that wasn't that long ago?
Quoted 6 lines
Program output affects the end user experience, so it is more important.
Changes to strings marked with
_()for l10n should come early in the development cycle so that translators have enough time to prepare for it before the release.
Are we early in the dev cycle? Should I prepare a separate patch with just the misspellings that affect end user experience?
Thanks!
Leila