Skip to content

Commit caa7d79

Browse files
committed
Sync with 'maint'
* maint: Correct common spelling mistakes in comments and tests kwset: fix spelling in comments precompose-utf8: fix spelling of "want" in error message compat/nedmalloc: fix spelling in comments compat/regex: fix spelling and grammar in comments obstack: fix spelling of similar contrib/subtree: fix spelling of accidentally git-remote-mediawiki: spelling fixes doc: various spelling fixes fast-export: fix argument name in error messages Documentation: distinguish between ref and offset deltas in pack-format i18n: make the translation of -u advice in one go
2 parents e2af9e3 + a46221e commit caa7d79

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+83
-85
lines changed

Documentation/git-credential.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ For example, if we want a password for
5656
`https://example.com/foo.git`, we might generate the following
5757
credential description (don't forget the blank line at the end; it
5858
tells `git credential` that the application finished feeding all the
59-
infomation it has):
59+
information it has):
6060

6161
protocol=https
6262
host=example.com

Documentation/git-remote-ext.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ begins with `ext::`. Examples:
8686
edit .ssh/config.
8787

8888
"ext::socat -t3600 - ABSTRACT-CONNECT:/git-server %G/somerepo"::
89-
Represents repository with path /somerepo accessable over
89+
Represents repository with path /somerepo accessible over
9090
git protocol at abstract namespace address /git-server.
9191

9292
"ext::git-server-alias foo %G/repo"::

Documentation/git-svn.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ first have already been pushed into SVN.
245245
patch), "all" (accept all patches), or "quit".
246246
+
247247
'git svn dcommit' returns immediately if answer if "no" or "quit", without
248-
commiting anything to SVN.
248+
committing anything to SVN.
249249

250250
'branch'::
251251
Create a branch in the SVN repository.
@@ -856,7 +856,7 @@ HANDLING OF SVN BRANCHES
856856
------------------------
857857
If 'git svn' is configured to fetch branches (and --follow-branches
858858
is in effect), it sometimes creates multiple Git branches for one
859-
SVN branch, where the addtional branches have names of the form
859+
SVN branch, where the additional branches have names of the form
860860
'branchname@nnn' (with nnn an SVN revision number). These additional
861861
branches are created if 'git svn' cannot find a parent commit for the
862862
first commit in an SVN branch, to connect the branch to the history of

Documentation/git-tools.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Others
109109

110110
- *git.el* (contrib/)
111111

112-
This is an Emacs interface for Git. The user interface is modeled on
112+
This is an Emacs interface for Git. The user interface is modelled on
113113
pcl-cvs. It has been developed on Emacs 21 and will probably need some
114114
tweaking to work on XEmacs.
115115

Documentation/revisions.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ when you run `git cherry-pick`.
5555
+
5656
Note that any of the 'refs/*' cases above may come either from
5757
the '$GIT_DIR/refs' directory or from the '$GIT_DIR/packed-refs' file.
58-
While the ref name encoding is unspecified, UTF-8 is prefered as
58+
While the ref name encoding is unspecified, UTF-8 is preferred as
5959
some output processing may assume ref names in UTF-8.
6060

6161
'<refname>@\{<date>\}', e.g. 'master@\{yesterday\}', 'HEAD@\{5 minutes ago\}'::

Documentation/technical/api-argv-array.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Functions
5555
initial, empty state.
5656

5757
`argv_array_detach`::
58-
Detach the argv array from the `struct argv_array`, transfering
58+
Detach the argv array from the `struct argv_array`, transferring
5959
ownership of the allocated array and strings.
6060

6161
`argv_array_free_detached`::

Documentation/technical/api-credentials.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ int foo_login(struct foo_connection *f)
160160
break;
161161
default:
162162
/*
163-
* Some other error occured. We don't know if the
163+
* Some other error occurred. We don't know if the
164164
* credential is good or bad, so report nothing to the
165165
* credential subsystem.
166166
*/

Documentation/technical/api-ref-iteration.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Iteration functions
3535
* `head_ref_submodule()`, `for_each_ref_submodule()`,
3636
`for_each_ref_in_submodule()`, `for_each_tag_ref_submodule()`,
3737
`for_each_branch_ref_submodule()`, `for_each_remote_ref_submodule()`
38-
do the same as the functions descibed above but for a specified
38+
do the same as the functions described above but for a specified
3939
submodule.
4040

4141
* `for_each_rawref()` can be used to learn about broken ref and symref.

Documentation/technical/pack-format.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ Git pack format
2626

2727
(deltified representation)
2828
n-byte type and length (3-bit type, (n-1)*7+4-bit length)
29-
20-byte base object name
29+
20-byte base object name if OBJ_REF_DELTA or a negative relative
30+
offset from the delta object's position in the pack if this
31+
is an OBJ_OFS_DELTA object
3032
compressed delta data
3133

3234
Observation: length of each object is encoded in a variable

builtin/apply.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,7 @@ static int parse_binary(char *buffer, unsigned long size, struct patch *patch)
19211921
}
19221922

19231923
/*
1924-
* Read the patch text in "buffer" taht extends for "size" bytes; stop
1924+
* Read the patch text in "buffer" that extends for "size" bytes; stop
19251925
* reading after seeing a single patch (i.e. changes to a single file).
19261926
* Create fragments (i.e. patch hunks) and hang them to the given patch.
19271927
* Return the number of bytes consumed, so that the caller can call us
@@ -3029,7 +3029,7 @@ static struct patch *in_fn_table(const char *name)
30293029
*
30303030
* The latter is needed to deal with a case where two paths A and B
30313031
* are swapped by first renaming A to B and then renaming B to A;
3032-
* moving A to B should not be prevented due to presense of B as we
3032+
* moving A to B should not be prevented due to presence of B as we
30333033
* will remove it in a later patch.
30343034
*/
30353035
#define PATH_TO_BE_DELETED ((struct patch *) -2)
@@ -3513,7 +3513,7 @@ static int check_patch(struct patch *patch)
35133513
*
35143514
* A patch to swap-rename between A and B would first rename A
35153515
* to B and then rename B to A. While applying the first one,
3516-
* the presense of B should not stop A from getting renamed to
3516+
* the presence of B should not stop A from getting renamed to
35173517
* B; ask to_be_deleted() about the later rename. Removal of
35183518
* B and rename from A to B is handled the same way by asking
35193519
* was_deleted().

builtin/fast-export.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static int parse_opt_signed_tag_mode(const struct option *opt,
4343
else if (!strcmp(arg, "strip"))
4444
signed_tag_mode = STRIP;
4545
else
46-
return error("Unknown signed-tag mode: %s", arg);
46+
return error("Unknown signed-tags mode: %s", arg);
4747
return 0;
4848
}
4949

@@ -420,7 +420,7 @@ static void handle_tag(const char *name, struct tag *tag)
420420
switch(signed_tag_mode) {
421421
case ABORT:
422422
die ("Encountered signed tag %s; use "
423-
"--signed-tag=<mode> to handle it.",
423+
"--signed-tags=<mode> to handle it.",
424424
sha1_to_hex(tag->object.sha1));
425425
case WARN:
426426
warning ("Exporting signed tag %s",

commit.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ struct commit_list *get_merge_bases(struct commit *one, struct commit *two,
841841
}
842842

843843
/*
844-
* Is "commit" a decendant of one of the elements on the "with_commit" list?
844+
* Is "commit" a descendant of one of the elements on the "with_commit" list?
845845
*/
846846
int is_descendant_of(struct commit *commit, struct commit_list *with_commit)
847847
{

commit.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *r
166166
extern struct commit_list *get_merge_bases_many(struct commit *one, int n, struct commit **twos, int cleanup);
167167
extern struct commit_list *get_octopus_merge_bases(struct commit_list *in);
168168

169-
/* largest postive number a signed 32-bit integer can contain */
169+
/* largest positive number a signed 32-bit integer can contain */
170170
#define INFINITE_DEPTH 0x7fffffff
171171

172172
extern int register_shallow(const unsigned char *sha1);

compat/nedmalloc/malloc.c.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -4778,7 +4778,7 @@ void* dlmalloc(size_t bytes) {
47784778

47794779
void dlfree(void* mem) {
47804780
/*
4781-
Consolidate freed chunks with preceeding or succeeding bordering
4781+
Consolidate freed chunks with preceding or succeeding bordering
47824782
free chunks, if they exist, and then place in a bin. Intermixed
47834783
with special cases for top, dv, mmapped chunks, and usage errors.
47844784
*/
@@ -5680,10 +5680,10 @@ int mspace_mallopt(int param_number, int value) {
56805680
Wolfram Gloger ([email protected]).
56815681
* Use last_remainder in more cases.
56825682
* Pack bins using idea from [email protected]
5683-
* Use ordered bins instead of best-fit threshhold
5683+
* Use ordered bins instead of best-fit threshold
56845684
* Eliminate block-local decls to simplify tracing and debugging.
56855685
* Support another case of realloc via move into top
5686-
* Fix error occuring when initial sbrk_base not word-aligned.
5686+
* Fix error occurring when initial sbrk_base not word-aligned.
56875687
* Rely on page size for units instead of SBRK_UNIT to
56885688
avoid surprises about sbrk alignment conventions.
56895689
* Add mallinfo, mallopt. Thanks to Raymond Nijssen

compat/obstack.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ extern "C" {
128128

129129
#define __BPTR_ALIGN(B, P, A) ((B) + (((P) - (B) + (A)) & ~(A)))
130130

131-
/* Similiar to _BPTR_ALIGN (B, P, A), except optimize the common case
131+
/* Similar to _BPTR_ALIGN (B, P, A), except optimize the common case
132132
where pointers can be converted to integers, aligned as integers,
133133
and converted back again. If PTR_INT_TYPE is narrower than a
134134
pointer (e.g., the AS/400), play it safe and compute the alignment

compat/precompose_utf8.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ struct dirent_prec_psx *precompose_utf8_readdir(PREC_DIR *prec_dir)
134134
if (prec_dir->ic_precompose == (iconv_t)-1) {
135135
die("iconv_open(%s,%s) failed, but needed:\n"
136136
" precomposed unicode is not supported.\n"
137-
" If you wnat to use decomposed unicode, run\n"
137+
" If you want to use decomposed unicode, run\n"
138138
" \"git config core.precomposeunicode false\"\n",
139139
repo_encoding, path_encoding);
140140
} else {

compat/regex/regcomp.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,7 @@ peek_token_bracket (re_token_t *token, re_string_t *input, reg_syntax_t syntax)
20952095

20962096
/* Entry point of the parser.
20972097
Parse the regular expression REGEXP and return the structure tree.
2098-
If an error is occured, ERR is set by error code, and return NULL.
2098+
If an error has occurred, ERR is set by error code, and return NULL.
20992099
This function build the following tree, from regular expression <reg_exp>:
21002100
CAT
21012101
/ \
@@ -3715,7 +3715,7 @@ build_charclass_op (re_dfa_t *dfa, RE_TRANSLATE_TYPE trans,
37153715
/* This is intended for the expressions like "a{1,3}".
37163716
Fetch a number from `input', and return the number.
37173717
Return -1, if the number field is empty like "{,1}".
3718-
Return -2, If an error is occured. */
3718+
Return -2, if an error has occurred. */
37193719

37203720
static int
37213721
fetch_number (re_string_t *input, re_token_t *token, reg_syntax_t syntax)

compat/regex/regex.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "config.h"
2323
#endif
2424

25-
/* Make sure noone compiles this code with a C++ compiler. */
25+
/* Make sure no one compiles this code with a C++ compiler. */
2626
#ifdef __cplusplus
2727
# error "This is C code, use a C compiler"
2828
#endif

compat/regex/regex_internal.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ re_node_set_merge (re_node_set *dest, const re_node_set *src)
12841284

12851285
/* Insert the new element ELEM to the re_node_set* SET.
12861286
SET should not already have ELEM.
1287-
return -1 if an error is occured, return 1 otherwise. */
1287+
return -1 if an error has occurred, return 1 otherwise. */
12881288

12891289
static int
12901290
internal_function
@@ -1341,7 +1341,7 @@ re_node_set_insert (re_node_set *set, int elem)
13411341

13421342
/* Insert the new element ELEM to the re_node_set* SET.
13431343
SET should not already have any element greater than or equal to ELEM.
1344-
Return -1 if an error is occured, return 1 otherwise. */
1344+
Return -1 if an error has occurred, return 1 otherwise. */
13451345

13461346
static int
13471347
internal_function
@@ -1416,7 +1416,7 @@ re_node_set_remove_at (re_node_set *set, int idx)
14161416

14171417

14181418
/* Add the token TOKEN to dfa->nodes, and return the index of the token.
1419-
Or return -1, if an error will be occured. */
1419+
Or return -1, if an error has occurred. */
14201420

14211421
static int
14221422
internal_function

contrib/mw-to-git/git-remote-mediawiki.perl

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
use constant SLASH_REPLACEMENT => "%2F";
2929

3030
# It's not always possible to delete pages (may require some
31-
# priviledges). Deleted pages are replaced with this content.
31+
# privileges). Deleted pages are replaced with this content.
3232
use constant DELETED_CONTENT => "[[Category:Deleted]]\n";
3333

3434
# It's not possible to create empty pages. New empty files in Git are
@@ -841,7 +841,7 @@ sub mw_import_ref {
841841
if ($fetch_from == 1 && $n == 0) {
842842
print STDERR "You appear to have cloned an empty MediaWiki.\n";
843843
# Something has to be done remote-helper side. If nothing is done, an error is
844-
# thrown saying that HEAD is refering to unknown object 0000000000000000000
844+
# thrown saying that HEAD is referring to unknown object 0000000000000000000
845845
# and the clone fails.
846846
}
847847
}
@@ -1067,7 +1067,7 @@ sub mw_push_file {
10671067
my $file_content;
10681068
if ($page_deleted) {
10691069
# Deleting a page usually requires
1070-
# special priviledges. A common
1070+
# special privileges. A common
10711071
# convention is to replace the page
10721072
# with this content instead:
10731073
$file_content = DELETED_CONTENT;

contrib/mw-to-git/t/README

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Principles and Technical Choices
2525

2626
The test environment makes it easy to install and manipulate one or
2727
several MediaWiki instances. To allow developers to run the testsuite
28-
easily, the environment does not require root priviledge (except to
28+
easily, the environment does not require root privilege (except to
2929
install the required packages if needed). It starts a webserver
3030
instance on the user's account (using lighttpd greatly helps for
3131
that), and does not need a separate database daemon (thanks to the use
@@ -81,7 +81,7 @@ parameters, please refer to the `test-gitmw-lib.sh` and
8181

8282
** `test_check_wiki_precond`:
8383
Check if the tests must be skipped or not. Please use this function
84-
at the beggining of each new test file.
84+
at the beginning of each new test file.
8585

8686
** `wiki_getpage`:
8787
Fetch a given page from the wiki and puts its content in the
@@ -113,7 +113,7 @@ Tests if a given page exists on the wiki.
113113

114114
** `wiki_reset`:
115115
Reset the wiki, i.e. flush the database. Use this function at the
116-
begining of each new test, except if the test re-uses the same wiki
116+
beginning of each new test, except if the test re-uses the same wiki
117117
(and history) as the previous test.
118118

119119
How to write a new test

contrib/mw-to-git/t/install-wiki/LocalSettings.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
## Set $wgCacheDirectory to a writable directory on the web server
9090
## to make your wiki go slightly faster. The directory should not
91-
## be publically accessible from the web.
91+
## be publicly accessible from the web.
9292
#$wgCacheDirectory = "$IP/cache";
9393

9494
# Site language code, should be one of the list in ./languages/Names.php

contrib/mw-to-git/t/t9362-mw-to-git-utf8.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ test_expect_success 'character $ in file name (git -> mw) ' '
139139
'
140140

141141

142-
test_expect_failure 'capital at the begining of file names' '
142+
test_expect_failure 'capital at the beginning of file names' '
143143
wiki_reset &&
144144
git clone mediawiki::'"$WIKI_URL"' mw_dir_10 &&
145145
(
@@ -156,7 +156,7 @@ test_expect_failure 'capital at the begining of file names' '
156156
'
157157

158158

159-
test_expect_failure 'special character at the begining of file name from mw to git' '
159+
test_expect_failure 'special character at the beginning of file name from mw to git' '
160160
wiki_reset &&
161161
git clone mediawiki::'"$WIKI_URL"' mw_dir_11 &&
162162
wiki_editpage {char_1 "expect to be renamed {char_1" false &&
@@ -189,7 +189,7 @@ test_expect_success 'Push page with title containing ":" other than namespace se
189189
wiki_page_exist NotANameSpace:Page
190190
'
191191

192-
test_expect_success 'test of correct formating for file name from mw to git' '
192+
test_expect_success 'test of correct formatting for file name from mw to git' '
193193
wiki_reset &&
194194
git clone mediawiki::'"$WIKI_URL"' mw_dir_12 &&
195195
wiki_editpage char_%_7b_1 "expect to be renamed char{_1" false &&
@@ -207,15 +207,15 @@ test_expect_success 'test of correct formating for file name from mw to git' '
207207
'
208208

209209

210-
test_expect_failure 'test of correct formating for file name begining with special character' '
210+
test_expect_failure 'test of correct formatting for file name beginning with special character' '
211211
wiki_reset &&
212212
git clone mediawiki::'"$WIKI_URL"' mw_dir_13 &&
213213
(
214214
cd mw_dir_13 &&
215215
echo "my new file {char_1" >\{char_1.mw &&
216216
echo "my new file [char_2" >\[char_2.mw &&
217217
git add . &&
218-
git commit -am "commiting some exotic file name..." &&
218+
git commit -am "committing some exotic file name..." &&
219219
git push &&
220220
git pull
221221
) &&
@@ -226,15 +226,15 @@ test_expect_failure 'test of correct formating for file name begining with speci
226226
'
227227

228228

229-
test_expect_success 'test of correct formating for file name from git to mw' '
229+
test_expect_success 'test of correct formatting for file name from git to mw' '
230230
wiki_reset &&
231231
git clone mediawiki::'"$WIKI_URL"' mw_dir_14 &&
232232
(
233233
cd mw_dir_14 &&
234234
echo "my new file char{_1" >Char\{_1.mw &&
235235
echo "my new file char[_2" >Char\[_2.mw &&
236236
git add . &&
237-
git commit -m "commiting some exotic file name..." &&
237+
git commit -m "committing some exotic file name..." &&
238238
git push
239239
) &&
240240
wiki_getallpage ref_page_14 &&

contrib/subtree/t/t7900-subtree.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ test_expect_success 'add main-sub5' '
419419
test_expect_success 'split for main-sub5 without --onto' '
420420
# also test that we still can split out an entirely new subtree
421421
# if the parent of the first commit in the tree is not empty,
422-
# then the new subtree has accidently been attached to something
422+
# then the new subtree has accidentally been attached to something
423423
git subtree split --prefix subdir2 --branch mainsub5 &&
424424
check_equal ''"$(git log --pretty=format:%P -1 mainsub5)"'' ""
425425
'

diff.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
15651565
* Binary files are displayed with "Bin XXX -> YYY bytes"
15661566
* instead of the change count and graph. This part is treated
15671567
* similarly to the graph part, except that it is not
1568-
* "scaled". If total width is too small to accomodate the
1568+
* "scaled". If total width is too small to accommodate the
15691569
* guaranteed minimum width of the filename part and the
15701570
* separators and this message, this message will "overflow"
15711571
* making the line longer than the maximum width.

0 commit comments

Comments
 (0)