Skip to content

Commit abcb66c

Browse files
rybakgitster
authored andcommitted
*: fix typos which duplicate a word
Fix typos in documentation, code comments, and RelNotes which repeat various words. In trivial cases, just delete the duplicated word and rewrap text, if needed. Reword the affected sentence in Documentation/RelNotes/1.8.4.txt for it to make sense. Signed-off-by: Andrei Rybak <rybak.a.v@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ebf3c04 commit abcb66c

File tree

14 files changed

+15
-16
lines changed

14 files changed

+15
-16
lines changed

Documentation/RelNotes/1.6.0.3.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Fixes since v1.6.0.2
5050
if the working tree is currently dirty.
5151

5252
* "git for-each-ref --format=%(subject)" fixed for commits with no
53-
no newline in the message body.
53+
newline in the message body.
5454

5555
* "git remote" fixed to protect printf from user input.
5656

Documentation/RelNotes/1.8.4.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ details).
365365
(merge 2fbd4f9 mh/maint-lockfile-overflow later to maint).
366366

367367
* Invocations of "git checkout" used internally by "git rebase" were
368-
counted as "checkout", and affected later "git checkout -" to the
368+
counted as "checkout", and affected later "git checkout -", which took
369369
the user to an unexpected place.
370370
(merge 3bed291 rr/rebase-checkout-reflog later to maint).
371371

Documentation/RelNotes/2.29.0.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ Performance, Internal Implementation, Development Support etc.
184184
the ref backend in use, as its format is much richer than the
185185
normal refs, and written directly by "git fetch" as a plain file..
186186

187-
* An unused binary has been discarded, and and a bunch of commands
188-
have been turned into into built-in.
187+
* An unused binary has been discarded, and a bunch of commands
188+
have been turned into built-in.
189189

190190
* A handful of places in in-tree code still relied on being able to
191191
execute the git subcommands, especially built-ins, in "git-foo"

Documentation/RelNotes/2.8.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ notes for details).
377377
on that order.
378378

379379
* "git show 'HEAD:Foo[BAR]Baz'" did not interpret the argument as a
380-
rev, i.e. the object named by the the pathname with wildcard
380+
rev, i.e. the object named by the pathname with wildcard
381381
characters in a tree object.
382382
(merge aac4fac nd/dwim-wildcards-as-pathspecs later to maint).
383383

Documentation/technical/hash-function-transition.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ supports four different modes of operation:
599599
convert any object names written to output to SHA-1, but store
600600
objects using SHA-256. This allows users to test the code with no
601601
visible behavior change except for performance. This allows
602-
allows running even tests that assume the SHA-1 hash function, to
602+
running even tests that assume the SHA-1 hash function, to
603603
sanity-check the behavior of the new mode.
604604

605605
2. ("early transition") Allow both SHA-1 and SHA-256 object names in

Documentation/technical/protocol-v2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ An `object-info` request takes the following arguments:
540540
Indicates to the server an object which the client wants to obtain
541541
information for.
542542

543-
The response of `object-info` is a list of the the requested object ids
543+
The response of `object-info` is a list of the requested object ids
544544
and associated requested information, each separated by a single space.
545545

546546
output = info flush-pkt

attr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ static struct attr_stack *read_attr_from_array(const char **list)
685685
* Callers into the attribute system assume there is a single, system-wide
686686
* global state where attributes are read from and when the state is flipped by
687687
* calling git_attr_set_direction(), the stack frames that have been
688-
* constructed need to be discarded so so that subsequent calls into the
688+
* constructed need to be discarded so that subsequent calls into the
689689
* attribute system will lazily read from the right place. Since changing
690690
* direction causes a global paradigm shift, it should not ever be called while
691691
* another thread could potentially be calling into the attribute system.

builtin/log.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,8 +1968,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
19681968
} else if (rev.diffopt.close_file) {
19691969
/*
19701970
* The diff code parsed --output; it has already opened the
1971-
* file, but but we must instruct it not to close after each
1972-
* diff.
1971+
* file, but we must instruct it not to close after each diff.
19731972
*/
19741973
rev.diffopt.no_free = 1;
19751974
} else {

git-compat-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ static inline void *container_of_or_null_offset(void *ptr, size_t offset)
13681368
(type *)container_of_or_null_offset(ptr, offsetof(type, member))
13691369

13701370
/*
1371-
* like offsetof(), but takes a pointer to a a variable of type which
1371+
* like offsetof(), but takes a pointer to a variable of type which
13721372
* contains @member, instead of a specified type.
13731373
* @ptr is subject to multiple evaluation since we can't rely on __typeof__
13741374
* everywhere.

git-cvsserver.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2149,7 +2149,7 @@ sub req_diff
21492149
( $meta2->{revision} or "workingcopy" ));
21502150

21512151
# TODO: Use --label instead of -L because -L is no longer
2152-
# documented and may go away someday. Not sure if there there are
2152+
# documented and may go away someday. Not sure if there are
21532153
# versions that only support -L, which would make this change risky?
21542154
# http://osdir.com/ml/bug-gnu-utils-gnu/2010-12/msg00060.html
21552155
# ("man diff" should actually document the best migration strategy,

0 commit comments

Comments
 (0)