···41834183 old_name = slash_old + 1;
41844184 new_name = slash_new + 1;
41854185 }
41864186- /* p->old_name thru old_name is the common prefix, and old_name and new_name
41874187- * through the end of names are renames
41864186+ /* p->old_name through old_name is the common prefix, and old_name and
41874187+ * new_name through the end of names are renames
41884188 */
41894189 if (old_name != p->old_name)
41904190 printf(" %s %.*s{%s => %s} (%d%%)\n", renamecopy,
+1-1
builtin/fetch.c
···1400140014011401 /*
14021402 * We're setting the upstream configuration for the
14031403- * current branch. The relevent upstream is the
14031403+ * current branch. The relevant upstream is the
14041404 * fetched branch that is meant to be merged with the
14051405 * current one, i.e. the one fetched to FETCH_HEAD.
14061406 *
+2-2
builtin/gc.c
···458458/*
459459 * Returns 0 if there was no previous error and gc can proceed, 1 if
460460 * gc should not proceed due to an error in the last run. Prints a
461461- * message and returns -1 if an error occured while reading gc.log
461461+ * message and returns -1 if an error occurred while reading gc.log
462462 */
463463static int report_last_gc_error(void)
464464{
···601601 if (detach_auto) {
602602 int ret = report_last_gc_error();
603603 if (ret < 0)
604604- /* an I/O error occured, already reported */
604604+ /* an I/O error occurred, already reported */
605605 exit(128);
606606 if (ret == 1)
607607 /* Last gc --auto failed. Skip this one. */
+1-1
builtin/pack-objects.c
···163163 delta_buf = diff_delta(base_buf, base_size,
164164 buf, size, &delta_size, 0);
165165 /*
166166- * We succesfully computed this delta once but dropped it for
166166+ * We successfully computed this delta once but dropped it for
167167 * memory reasons. Something is very wrong if this time we
168168 * recompute and create a different delta.
169169 */
+1-1
commit-graph.c
···461461/*
462462 * Return 1 if commit_graph is non-NULL, and 0 otherwise.
463463 *
464464- * On the first invocation, this function attemps to load the commit
464464+ * On the first invocation, this function attempts to load the commit
465465 * graph if the_repository is configured to have one.
466466 */
467467static int prepare_commit_graph(struct repository *r)
+1-1
commit.h
···132132#endif
133133134134/*
135135- * Tell the commit subsytem that we are done with a particular commit buffer.
135135+ * Tell the commit subsystem that we are done with a particular commit buffer.
136136 * The commit and buffer should be the input and return value, respectively,
137137 * from an earlier call to get_commit_buffer. The buffer may or may not be
138138 * freed by this call; callers should not access the memory afterwards.
+1-1
compat/mingw.h
···558558559559/*
560560 * A critical section used in the implementation of the spawn
561561- * functions (mingw_spawnv[p]e()) and waitpid(). Intialised in
561561+ * functions (mingw_spawnv[p]e()) and waitpid(). Initialised in
562562 * the replacement main() macro below.
563563 */
564564extern CRITICAL_SECTION pinfo_cs;
+1-1
compat/vcbuild/find_vs_env.bat
···1818REM attempts to do that.
1919REM ================================================================
2020REM This BAT file starts in a plain (non-developer) command prompt,
2121-REM searches for the "best" commmand prompt setup script, installs
2121+REM searches for the "best" command prompt setup script, installs
2222REM it into the current CMD process, and exports the various MSVC
2323REM environment variables for use by MAKE.
2424REM
+1-1
configure.ac
···85858686# GIT_PARSE_WITH_SET_MAKE_VAR(WITHNAME, VAR, HELP_TEXT)
8787# -----------------------------------------------------
8888-# Set VAR to the value specied by --with-WITHNAME.
8888+# Set VAR to the value specified by --with-WITHNAME.
8989# No verification of arguments is performed, but warnings are issued
9090# if either 'yes' or 'no' is specified.
9191# HELP_TEXT is presented when --help is called.
+1-1
contrib/coccinelle/commit.cocci
···2020+ set_commit_tree(c, s)
2121 ...>}
22222323-// These excluded functions must access c->maybe_tree direcly.
2323+// These excluded functions must access c->maybe_tree directly.
2424// Note that if c->maybe_tree is written somewhere outside of these
2525// functions, then the recommended transformation will be bogus with
2626// repo_get_commit_tree() on the LHS.
+2-2
contrib/completion/git-completion.bash
···550550 esc_idx, 1)
551551 } else if (esc == "n") {
552552 # Uh-oh, a newline character.
553553- # We cant reliably put a pathname
553553+ # We cannot reliably put a pathname
554554 # containing a newline into COMPREPLY,
555555 # and the newline would create a mess.
556556 # Skip this path.
···565565 }
566566 }
567567 # Drop closing double quote, if there is one.
568568- # (There isnt any if this is a directory, as it was
568568+ # (There is not any if this is a directory, as it was
569569 # already stripped with the trailing path components.)
570570 if (substr(p, length(p), 1) == "\"")
571571 out = out substr(p, 1, length(p) - 1)
+1-1
contrib/hooks/post-receive-email
···329329 #
330330 # git rev-parse --not --all | grep -v $(git rev-parse $refname)
331331 #
332332- # Get's us to something pretty safe (apart from the small time
332332+ # Gets us to something pretty safe (apart from the small time
333333 # between refname being read, and git rev-parse running - for that,
334334 # I give up)
335335 #
+1-1
convert.c
···418418 if (!dst) {
419419 /*
420420 * We could add the blob "as-is" to Git. However, on checkout
421421- * we would try to reencode to the original encoding. This
421421+ * we would try to re-encode to the original encoding. This
422422 * would fail and we would leave the user with a messed-up
423423 * working tree. Let's try to avoid this by screaming loud.
424424 */
+2-2
daemon.c
···598598 * Read the host as supplied by the client connection.
599599 *
600600 * Returns a pointer to the character after the NUL byte terminating the host
601601- * arguemnt, or 'extra_args' if there is no host arguemnt.
601601+ * argument, or 'extra_args' if there is no host argument.
602602 */
603603static char *parse_host_arg(struct hostinfo *hi, char *extra_args, int buflen)
604604{
···652652 * service that will be run.
653653 *
654654 * If there ends up being a particular arg in the future that
655655- * git-daemon needs to parse specificly (like the 'host' arg)
655655+ * git-daemon needs to parse specifically (like the 'host' arg)
656656 * then it can be parsed here and not added to 'git_protocol'.
657657 */
658658 if (*arg) {
+2-2
diff.c
···25512551 /*
25522552 * make sure that at least one '-' or '+' is printed if
25532553 * there is any change to this path. The easiest way is to
25542554- * scale linearly as if the alloted width is one column shorter
25542554+ * scale linearly as if the allotted width is one column shorter
25552555 * than it is, and then add 1 to the result.
25562556 */
25572557 return 1 + (it * (width - 1) / max_change);
···31963196 for (cnt = 1; cnt < marker_size; cnt++)
31973197 if (line[cnt] != firstchar)
31983198 return 0;
31993199- /* line[1] thru line[marker_size-1] are same as firstchar */
31993199+ /* line[1] through line[marker_size-1] are same as firstchar */
32003200 if (len < marker_size + 1 || !isspace(line[marker_size]))
32013201 return 0;
32023202 return 1;
+1-1
dir.c
···24892489 * wanted anyway
24902490 */
24912491 continue;
24922492- /* fall thru */
24922492+ /* fall through */
24932493 } else if (S_ISDIR(st.st_mode)) {
24942494 if (!remove_dir_recurse(path, flag, &kept_down))
24952495 continue; /* happy */
+1-1
git-send-email.perl
···12281228# domain name that corresponds the IP address in the HELO/EHLO
12291229# handshake. This is used to verify the connection and prevent
12301230# spammers from trying to hide their identity. If the DNS and IP don't
12311231-# match, the receiveing MTA may deny the connection.
12311231+# match, the receiving MTA may deny the connection.
12321232#
12331233# Here is a deny example of Net::SMTP with the default "localhost.localdomain"
12341234#
···5151}
52525353/*
5454- * Incoporate another chunk of data into a memihash
5454+ * Incorporate another chunk of data into a memihash
5555 * computation.
5656 */
5757unsigned int memihash_cont(unsigned int hash_seed, const void *buf, size_t len)
+1-1
hashmap.h
···502502}
503503504504/*
505505- * Re-enable item couting when adding/removing items.
505505+ * Re-enable item counting when adding/removing items.
506506 * If counting is currently disabled, it will force count them.
507507 * It WILL NOT automatically rehash them.
508508 */
+1-1
name-hash.c
···138138139139/*
140140 * Set a minimum number of cache_entries that we will handle per
141141- * thread and use that to decide how many threads to run (upto
141141+ * thread and use that to decide how many threads to run (up to
142142 * the number on the system).
143143 *
144144 * For guidance setting the lower per-thread bound, see:
+1-1
parse-options.c
···623623 * Scan and may produce a new option[] array, which should be used
624624 * instead of the original 'options'.
625625 *
626626- * Right now this is only used to preprocess and substitue
626626+ * Right now this is only used to preprocess and substitute
627627 * OPTION_ALIAS.
628628 */
629629static struct option *preprocess_options(struct parse_opt_ctx_t *ctx,
+1-1
range-diff.h
···66#define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60
7788/*
99- * Compare series of commmits in RANGE1 and RANGE2, and emit to the
99+ * Compare series of commits in RANGE1 and RANGE2, and emit to the
1010 * standard output. NULL can be passed to DIFFOPT to use the built-in
1111 * default.
1212 */
+1-1
read-cache.c
···17901790 const unsigned char *cp = (const unsigned char *)name;
17911791 size_t strip_len, previous_len;
1792179217931793- /* If we're at the begining of a block, ignore the previous name */
17931793+ /* If we're at the beginning of a block, ignore the previous name */
17941794 strip_len = decode_varint(&cp);
17951795 if (previous_ce) {
17961796 previous_len = previous_ce->ce_namelen;
+1-1
refs/refs-internal.h
···262262 * after calling ref_iterator_advance() again or calling
263263 * ref_iterator_abort(), you must make a copy. When the iteration has
264264 * been exhausted, ref_iterator_advance() releases any resources
265265- * assocated with the iteration, frees the ref_iterator object, and
265265+ * associated with the iteration, frees the ref_iterator object, and
266266 * returns ITER_DONE. If you want to abort the iteration early, call
267267 * ref_iterator_abort(), which also frees the ref_iterator object and
268268 * any associated resources. If there was an internal error advancing
+2-2
repository.c
···200200201201 if (repo_init(subrepo, gitdir.buf, worktree.buf)) {
202202 /*
203203- * If initilization fails then it may be due to the submodule
203203+ * If initialization fails then it may be due to the submodule
204204 * not being populated in the superproject's worktree. Instead
205205- * we can try to initilize the submodule by finding it's gitdir
205205+ * we can try to initialize the submodule by finding it's gitdir
206206 * in the superproject's 'modules' directory. In this case the
207207 * submodule would not have a worktree.
208208 */
+1-1
repository.h
···172172 * be allocated if needed.
173173 *
174174 * Return the number of index entries in the populated index or a value less
175175- * than zero if an error occured. If the repository's index has already been
175175+ * than zero if an error occurred. If the repository's index has already been
176176 * populated then the number of entries will simply be returned.
177177 */
178178int repo_read_index(struct repository *repo);
+1-1
rerere.c
···431431 * and NUL concatenated together.
432432 *
433433 * Return 1 if conflict hunks are found, 0 if there are no conflict
434434- * hunks and -1 if an error occured.
434434+ * hunks and -1 if an error occurred.
435435 */
436436static int handle_path(unsigned char *hash, struct rerere_io *io, int marker_size)
437437{
+3-3
sequencer.c
···131131 "rebase-merge/rewritten-pending")
132132133133/*
134134- * The path of the file containig the OID of the "squash onto" commit, i.e.
134134+ * The path of the file containing the OID of the "squash onto" commit, i.e.
135135 * the dummy commit used for `reset [new root]`.
136136 */
137137static GIT_PATH_FUNC(rebase_path_squash_onto, "rebase-merge/squash-onto")
···46444644 label_oid(oid, "branch-point", &state);
46454645 }
4646464646474647- /* Add HEAD as implict "tip of branch" */
46474647+ /* Add HEAD as implicit "tip of branch" */
46484648 if (!iter->next)
46494649 tips_tail = &commit_list_insert(iter->item,
46504650 tips_tail)->next;
···48264826 * are considered part of the pick, so we insert the commands *after*
48274827 * those chains if there are any.
48284828 *
48294829- * As we insert the exec commands immediatly after rearranging
48294829+ * As we insert the exec commands immediately after rearranging
48304830 * any fixups and before the user edits the list, a fixup chain
48314831 * can never contain comments (any comments are empty picks that
48324832 * have been commented out because the user did not specify
+1-1
server-info.c
···9393 uic.old_fp = fopen_or_warn(path, "r");
94949595 /*
9696- * uic_printf will compare incremental comparison aginst old_fp
9696+ * uic_printf will compare incremental comparison against old_fp
9797 * and mark uic as stale if needed
9898 */
9999 ret = generate(&uic);
+1-1
string-list.h
···179179180180/**
181181 * Check if the given string is part of a sorted list. If it is part of the list,
182182- * return the coresponding string_list_item, NULL otherwise.
182182+ * return the corresponding string_list_item, NULL otherwise.
183183 */
184184struct string_list_item *string_list_lookup(struct string_list *list, const char *string);
185185
+1-1
trace2/tr2_sid.c
···1919 * "H<first_8_chars_of_sha1_of_hostname>"
2020 * "Localhost" when no hostname.
2121 *
2222- * where <process> is a 9 character string containing the least signifcant
2222+ * where <process> is a 9 character string containing the least significant
2323 * 32 bits in the process-id.
2424 * "P<pid>"
2525 * (This is an abribrary choice. On most systems pid_t is a 32 bit value,
+2-2
unpack-trees.c
···275275}
276276277277/*
278278- * Preform the loading of the repository's gitmodules file. This function is
278278+ * Perform the loading of the repository's gitmodules file. This function is
279279 * used by 'check_update()' to perform loading of the gitmodules file in two
280280- * differnt situations:
280280+ * different situations:
281281 * (1) before removing entries from the working tree if the gitmodules file has
282282 * been marked for removal. This situation is specified by 'state' == NULL.
283283 * (2) before checking out entries to the working tree if the gitmodules file
+1-1
url.c
···55{
66 /*
77 * The set of valid URL schemes, as per STD66 (RFC3986) is
88- * '[A-Za-z][A-Za-z0-9+.-]*'. But use sightly looser check
88+ * '[A-Za-z][A-Za-z0-9+.-]*'. But use slightly looser check
99 * of '[A-Za-z0-9][A-Za-z0-9+.-]*' because earlier version
1010 * of check used '[A-Za-z0-9]+' so not to break any remote
1111 * helpers.
+1-1
xdiff-interface.h
···4444 * Compare the strings l1 with l2 which are of size s1 and s2 respectively.
4545 * Returns 1 if the strings are deemed equal, 0 otherwise.
4646 * The `flags` given as XDF_WHITESPACE_FLAGS determine how white spaces
4747- * are treated for the comparision.
4747+ * are treated for the comparison.
4848 */
4949int xdiff_compare_lines(const char *l1, long s1,
5050 const char *l2, long s2, long flags);