Skip to content
/ git Public
forked from git/git

Commit

Permalink
Sync with 'maint'
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
gitster committed Apr 12, 2013
2 parents e2af9e3 + a46221e commit caa7d79
Show file tree
Hide file tree
Showing 49 changed files with 83 additions and 85 deletions.
2 changes: 1 addition & 1 deletion Documentation/git-credential.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ For example, if we want a password for
`https://example.com/foo.git`, we might generate the following
credential description (don't forget the blank line at the end; it
tells `git credential` that the application finished feeding all the
infomation it has):
information it has):

protocol=https
host=example.com
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-remote-ext.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ begins with `ext::`. Examples:
edit .ssh/config.

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

"ext::git-server-alias foo %G/repo"::
Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-svn.txt
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ first have already been pushed into SVN.
patch), "all" (accept all patches), or "quit".
+
'git svn dcommit' returns immediately if answer if "no" or "quit", without
commiting anything to SVN.
committing anything to SVN.

'branch'::
Create a branch in the SVN repository.
Expand Down Expand Up @@ -856,7 +856,7 @@ HANDLING OF SVN BRANCHES
------------------------
If 'git svn' is configured to fetch branches (and --follow-branches
is in effect), it sometimes creates multiple Git branches for one
SVN branch, where the addtional branches have names of the form
SVN branch, where the additional branches have names of the form
'branchname@nnn' (with nnn an SVN revision number). These additional
branches are created if 'git svn' cannot find a parent commit for the
first commit in an SVN branch, to connect the branch to the history of
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Others

- *git.el* (contrib/)

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

Expand Down
2 changes: 1 addition & 1 deletion Documentation/revisions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ when you run `git cherry-pick`.
+
Note that any of the 'refs/*' cases above may come either from
the '$GIT_DIR/refs' directory or from the '$GIT_DIR/packed-refs' file.
While the ref name encoding is unspecified, UTF-8 is prefered as
While the ref name encoding is unspecified, UTF-8 is preferred as
some output processing may assume ref names in UTF-8.

'<refname>@\{<date>\}', e.g. 'master@\{yesterday\}', 'HEAD@\{5 minutes ago\}'::
Expand Down
2 changes: 1 addition & 1 deletion Documentation/technical/api-argv-array.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Functions
initial, empty state.

`argv_array_detach`::
Detach the argv array from the `struct argv_array`, transfering
Detach the argv array from the `struct argv_array`, transferring
ownership of the allocated array and strings.

`argv_array_free_detached`::
Expand Down
2 changes: 1 addition & 1 deletion Documentation/technical/api-credentials.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,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.
*/
Expand Down
2 changes: 1 addition & 1 deletion Documentation/technical/api-ref-iteration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Iteration functions
* `head_ref_submodule()`, `for_each_ref_submodule()`,
`for_each_ref_in_submodule()`, `for_each_tag_ref_submodule()`,
`for_each_branch_ref_submodule()`, `for_each_remote_ref_submodule()`
do the same as the functions descibed above but for a specified
do the same as the functions described above but for a specified
submodule.

* `for_each_rawref()` can be used to learn about broken ref and symref.
Expand Down
4 changes: 3 additions & 1 deletion Documentation/technical/pack-format.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ Git pack format

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

Observation: length of each object is encoded in a variable
Expand Down
6 changes: 3 additions & 3 deletions builtin/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -1921,7 +1921,7 @@ static int parse_binary(char *buffer, unsigned long size, struct patch *patch)
}

/*
* Read the patch text in "buffer" taht extends for "size" bytes; stop
* Read the patch text in "buffer" that extends for "size" bytes; stop
* reading after seeing a single patch (i.e. changes to a single file).
* Create fragments (i.e. patch hunks) and hang them to the given patch.
* Return the number of bytes consumed, so that the caller can call us
Expand Down Expand Up @@ -3029,7 +3029,7 @@ static struct patch *in_fn_table(const char *name)
*
* The latter is needed to deal with a case where two paths A and B
* are swapped by first renaming A to B and then renaming B to A;
* moving A to B should not be prevented due to presense of B as we
* moving A to B should not be prevented due to presence of B as we
* will remove it in a later patch.
*/
#define PATH_TO_BE_DELETED ((struct patch *) -2)
Expand Down Expand Up @@ -3513,7 +3513,7 @@ static int check_patch(struct patch *patch)
*
* A patch to swap-rename between A and B would first rename A
* to B and then rename B to A. While applying the first one,
* the presense of B should not stop A from getting renamed to
* the presence of B should not stop A from getting renamed to
* B; ask to_be_deleted() about the later rename. Removal of
* B and rename from A to B is handled the same way by asking
* was_deleted().
Expand Down
4 changes: 2 additions & 2 deletions builtin/fast-export.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static int parse_opt_signed_tag_mode(const struct option *opt,
else if (!strcmp(arg, "strip"))
signed_tag_mode = STRIP;
else
return error("Unknown signed-tag mode: %s", arg);
return error("Unknown signed-tags mode: %s", arg);
return 0;
}

Expand Down Expand Up @@ -420,7 +420,7 @@ static void handle_tag(const char *name, struct tag *tag)
switch(signed_tag_mode) {
case ABORT:
die ("Encountered signed tag %s; use "
"--signed-tag=<mode> to handle it.",
"--signed-tags=<mode> to handle it.",
sha1_to_hex(tag->object.sha1));
case WARN:
warning ("Exporting signed tag %s",
Expand Down
2 changes: 1 addition & 1 deletion commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ struct commit_list *get_merge_bases(struct commit *one, struct commit *two,
}

/*
* Is "commit" a decendant of one of the elements on the "with_commit" list?
* Is "commit" a descendant of one of the elements on the "with_commit" list?
*/
int is_descendant_of(struct commit *commit, struct commit_list *with_commit)
{
Expand Down
2 changes: 1 addition & 1 deletion commit.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *r
extern struct commit_list *get_merge_bases_many(struct commit *one, int n, struct commit **twos, int cleanup);
extern struct commit_list *get_octopus_merge_bases(struct commit_list *in);

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

extern int register_shallow(const unsigned char *sha1);
Expand Down
6 changes: 3 additions & 3 deletions compat/nedmalloc/malloc.c.h
Original file line number Diff line number Diff line change
Expand Up @@ -4778,7 +4778,7 @@ void* dlmalloc(size_t bytes) {

void dlfree(void* mem) {
/*
Consolidate freed chunks with preceeding or succeeding bordering
Consolidate freed chunks with preceding or succeeding bordering
free chunks, if they exist, and then place in a bin. Intermixed
with special cases for top, dv, mmapped chunks, and usage errors.
*/
Expand Down Expand Up @@ -5680,10 +5680,10 @@ int mspace_mallopt(int param_number, int value) {
Wolfram Gloger (Gloger@lrz.uni-muenchen.de).
* Use last_remainder in more cases.
* Pack bins using idea from colin@nyx10.cs.du.edu
* Use ordered bins instead of best-fit threshhold
* Use ordered bins instead of best-fit threshold
* Eliminate block-local decls to simplify tracing and debugging.
* Support another case of realloc via move into top
* Fix error occuring when initial sbrk_base not word-aligned.
* Fix error occurring when initial sbrk_base not word-aligned.
* Rely on page size for units instead of SBRK_UNIT to
avoid surprises about sbrk alignment conventions.
* Add mallinfo, mallopt. Thanks to Raymond Nijssen
Expand Down
2 changes: 1 addition & 1 deletion compat/obstack.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ extern "C" {

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

/* Similiar to _BPTR_ALIGN (B, P, A), except optimize the common case
/* Similar to _BPTR_ALIGN (B, P, A), except optimize the common case
where pointers can be converted to integers, aligned as integers,
and converted back again. If PTR_INT_TYPE is narrower than a
pointer (e.g., the AS/400), play it safe and compute the alignment
Expand Down
2 changes: 1 addition & 1 deletion compat/precompose_utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ struct dirent_prec_psx *precompose_utf8_readdir(PREC_DIR *prec_dir)
if (prec_dir->ic_precompose == (iconv_t)-1) {
die("iconv_open(%s,%s) failed, but needed:\n"
" precomposed unicode is not supported.\n"
" If you wnat to use decomposed unicode, run\n"
" If you want to use decomposed unicode, run\n"
" \"git config core.precomposeunicode false\"\n",
repo_encoding, path_encoding);
} else {
Expand Down
4 changes: 2 additions & 2 deletions compat/regex/regcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
/ \
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion compat/regex/regex.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "config.h"
#endif

/* Make sure noone compiles this code with a C++ compiler. */
/* Make sure no one compiles this code with a C++ compiler. */
#ifdef __cplusplus
# error "This is C code, use a C compiler"
#endif
Expand Down
6 changes: 3 additions & 3 deletions compat/regex/regex_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions contrib/mw-to-git/git-remote-mediawiki.perl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use constant SLASH_REPLACEMENT => "%2F";

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

# It's not possible to create empty pages. New empty files in Git are
Expand Down Expand Up @@ -841,7 +841,7 @@ sub mw_import_ref {
if ($fetch_from == 1 && $n == 0) {
print STDERR "You appear to have cloned an empty MediaWiki.\n";
# Something has to be done remote-helper side. If nothing is done, an error is
# thrown saying that HEAD is refering to unknown object 0000000000000000000
# thrown saying that HEAD is referring to unknown object 0000000000000000000
# and the clone fails.
}
}
Expand Down Expand Up @@ -1067,7 +1067,7 @@ sub mw_push_file {
my $file_content;
if ($page_deleted) {
# Deleting a page usually requires
# special priviledges. A common
# special privileges. A common
# convention is to replace the page
# with this content instead:
$file_content = DELETED_CONTENT;
Expand Down
6 changes: 3 additions & 3 deletions contrib/mw-to-git/t/README
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Principles and Technical Choices

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

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

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

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

How to write a new test
Expand Down
2 changes: 1 addition & 1 deletion contrib/mw-to-git/t/install-wiki/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

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

# Site language code, should be one of the list in ./languages/Names.php
Expand Down
14 changes: 7 additions & 7 deletions contrib/mw-to-git/t/t9362-mw-to-git-utf8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ test_expect_success 'character $ in file name (git -> mw) ' '
'


test_expect_failure 'capital at the begining of file names' '
test_expect_failure 'capital at the beginning of file names' '
wiki_reset &&
git clone mediawiki::'"$WIKI_URL"' mw_dir_10 &&
(
Expand All @@ -156,7 +156,7 @@ test_expect_failure 'capital at the begining of file names' '
'


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

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


test_expect_failure 'test of correct formating for file name begining with special character' '
test_expect_failure 'test of correct formatting for file name beginning with special character' '
wiki_reset &&
git clone mediawiki::'"$WIKI_URL"' mw_dir_13 &&
(
cd mw_dir_13 &&
echo "my new file {char_1" >\{char_1.mw &&
echo "my new file [char_2" >\[char_2.mw &&
git add . &&
git commit -am "commiting some exotic file name..." &&
git commit -am "committing some exotic file name..." &&
git push &&
git pull
) &&
Expand All @@ -226,15 +226,15 @@ test_expect_failure 'test of correct formating for file name begining with speci
'


test_expect_success 'test of correct formating for file name from git to mw' '
test_expect_success 'test of correct formatting for file name from git to mw' '
wiki_reset &&
git clone mediawiki::'"$WIKI_URL"' mw_dir_14 &&
(
cd mw_dir_14 &&
echo "my new file char{_1" >Char\{_1.mw &&
echo "my new file char[_2" >Char\[_2.mw &&
git add . &&
git commit -m "commiting some exotic file name..." &&
git commit -m "committing some exotic file name..." &&
git push
) &&
wiki_getallpage ref_page_14 &&
Expand Down
2 changes: 1 addition & 1 deletion contrib/subtree/t/t7900-subtree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ test_expect_success 'add main-sub5' '
test_expect_success 'split for main-sub5 without --onto' '
# also test that we still can split out an entirely new subtree
# if the parent of the first commit in the tree is not empty,
# then the new subtree has accidently been attached to something
# then the new subtree has accidentally been attached to something
git subtree split --prefix subdir2 --branch mainsub5 &&
check_equal ''"$(git log --pretty=format:%P -1 mainsub5)"'' ""
'
Expand Down
2 changes: 1 addition & 1 deletion diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
* Binary files are displayed with "Bin XXX -> YYY bytes"
* instead of the change count and graph. This part is treated
* similarly to the graph part, except that it is not
* "scaled". If total width is too small to accomodate the
* "scaled". If total width is too small to accommodate the
* guaranteed minimum width of the filename part and the
* separators and this message, this message will "overflow"
* making the line longer than the maximum width.
Expand Down
Loading

0 comments on commit caa7d79

Please sign in to comment.