]> git.ipfire.org Git - thirdparty/git.git/commitdiff
*: fix typos which duplicate a word
authorAndrei Rybak <rybak.a.v@gmail.com>
Fri, 11 Jun 2021 11:18:50 +0000 (13:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jun 2021 01:16:06 +0000 (10:16 +0900)
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>
14 files changed:
Documentation/RelNotes/1.6.0.3.txt
Documentation/RelNotes/1.8.4.txt
Documentation/RelNotes/2.29.0.txt
Documentation/RelNotes/2.8.0.txt
Documentation/technical/hash-function-transition.txt
Documentation/technical/protocol-v2.txt
attr.c
builtin/log.c
git-compat-util.h
git-cvsserver.perl
merge-recursive.c
remote.c
t/t5505-remote.sh
t/t9100-git-svn-basic.sh

index ae0577836ae8b3ea73f8565acc42964d4144dd26..ad36c0f0b7c6e541a704ea0de6580afa68a5b627 100644 (file)
@@ -50,7 +50,7 @@ Fixes since v1.6.0.2
   if the working tree is currently dirty.
 
 * "git for-each-ref --format=%(subject)" fixed for commits with no
-  no newline in the message body.
+  newline in the message body.
 
 * "git remote" fixed to protect printf from user input.
 
index 255e185af6fcd4c45925b0fceaae5e2357d844bd..2e7529928b6d6c194039d7fb12f7f077585ec2da 100644 (file)
@@ -365,7 +365,7 @@ details).
    (merge 2fbd4f9 mh/maint-lockfile-overflow later to maint).
 
  * Invocations of "git checkout" used internally by "git rebase" were
-   counted as "checkout", and affected later "git checkout -" to the
+   counted as "checkout", and affected later "git checkout -", which took
    the user to an unexpected place.
    (merge 3bed291 rr/rebase-checkout-reflog later to maint).
 
index 06ba2f803f665f37b7e7498917f7e5c6a47023f1..1f41302ebba594bb36bab02356f2ffba2d440e0e 100644 (file)
@@ -184,8 +184,8 @@ Performance, Internal Implementation, Development Support etc.
    the ref backend in use, as its format is much richer than the
    normal refs, and written directly by "git fetch" as a plain file..
 
- * An unused binary has been discarded, and and a bunch of commands
-   have been turned into into built-in.
+ * An unused binary has been discarded, and a bunch of commands
+   have been turned into built-in.
 
  * A handful of places in in-tree code still relied on being able to
    execute the git subcommands, especially built-ins, in "git-foo"
index 27320b6a9f37f57e80607aa2d0adfbc1df2a53a2..38453281b85e782816320ba23dfac818fd04144f 100644 (file)
@@ -377,7 +377,7 @@ notes for details).
    on that order.
 
  * "git show 'HEAD:Foo[BAR]Baz'" did not interpret the argument as a
-   rev, i.e. the object named by the the pathname with wildcard
+   rev, i.e. the object named by the pathname with wildcard
    characters in a tree object.
    (merge aac4fac nd/dwim-wildcards-as-pathspecs later to maint).
 
index 7c1630bf832491080b043e5c2e3126272dc0408c..260224b0331c709da9aa4bcfa06ae97146cfffb6 100644 (file)
@@ -599,7 +599,7 @@ supports four different modes of operation:
     convert any object names written to output to SHA-1, but store
     objects using SHA-256.  This allows users to test the code with no
     visible behavior change except for performance.  This allows
-    allows running even tests that assume the SHA-1 hash function, to
+    running even tests that assume the SHA-1 hash function, to
     sanity-check the behavior of the new mode.
 
  2. ("early transition") Allow both SHA-1 and SHA-256 object names in
index a1e31367f4c8c31f1faff5bb749c0685a6d18586..1040d853198b87ef913ed9157301965dd4a50cd9 100644 (file)
@@ -540,7 +540,7 @@ An `object-info` request takes the following arguments:
        Indicates to the server an object which the client wants to obtain
        information for.
 
-The response of `object-info` is a list of the the requested object ids
+The response of `object-info` is a list of the requested object ids
 and associated requested information, each separated by a single space.
 
        output = info flush-pkt
diff --git a/attr.c b/attr.c
index 9e897e43f53196c238d152822f54b37b3ce91288..d029e681f2880a7cbb48cd3272d0c962a3e1edcd 100644 (file)
--- a/attr.c
+++ b/attr.c
@@ -685,7 +685,7 @@ static struct attr_stack *read_attr_from_array(const char **list)
  * Callers into the attribute system assume there is a single, system-wide
  * global state where attributes are read from and when the state is flipped by
  * calling git_attr_set_direction(), the stack frames that have been
- * constructed need to be discarded so so that subsequent calls into the
+ * constructed need to be discarded so that subsequent calls into the
  * attribute system will lazily read from the right place.  Since changing
  * direction causes a global paradigm shift, it should not ever be called while
  * another thread could potentially be calling into the attribute system.
index 6102893fccb96cf2203b524664c3b2c88c84d9b1..516a1142ddf0bc9bfb532612acf390ec2e4149ca 100644 (file)
@@ -1968,8 +1968,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
        } else if (rev.diffopt.close_file) {
                /*
                 * The diff code parsed --output; it has already opened the
-                * file, but but we must instruct it not to close after each
-                * diff.
+                * file, but we must instruct it not to close after each diff.
                 */
                rev.diffopt.no_free = 1;
        } else {
index a508dbe5a35104e6efb375c4a7bb81b2b62bd540..df7dae9be1af4167519b94e61676529079cda0d8 100644 (file)
@@ -1368,7 +1368,7 @@ static inline void *container_of_or_null_offset(void *ptr, size_t offset)
        (type *)container_of_or_null_offset(ptr, offsetof(type, member))
 
 /*
- * like offsetof(), but takes a pointer to a variable of type which
+ * like offsetof(), but takes a pointer to a variable of type which
  * contains @member, instead of a specified type.
  * @ptr is subject to multiple evaluation since we can't rely on __typeof__
  * everywhere.
index f6f3fc192c8713555fa0752c29b0c45146d6ed6c..ed035f32c29d516164622994095122afe9f49e8e 100755 (executable)
@@ -2149,7 +2149,7 @@ sub req_diff
                    ( $meta2->{revision} or "workingcopy" ));
 
         # TODO: Use --label instead of -L because -L is no longer
-        #  documented and may go away someday.  Not sure if there there are
+        #  documented and may go away someday.  Not sure if there are
         #  versions that only support -L, which would make this change risky?
         #  http://osdir.com/ml/bug-gnu-utils-gnu/2010-12/msg00060.html
         #    ("man diff" should actually document the best migration strategy,
index d146bb116f73cdbda69caee38413dc76807ae660..4327e0cfa3314974482005ef22cb2d24f18e5191 100644 (file)
@@ -2152,7 +2152,7 @@ static char *handle_path_level_conflicts(struct merge_options *opt,
  *      implicit renaming of files that should be left in place.  (See
  *      testcase 6b in t6043 for details.)
  *   2. Prune directory renames if there are still files left in the
- *      the original directory.  These represent a partial directory rename,
+ *      original directory.  These represent a partial directory rename,
  *      i.e. a rename where only some of the files within the directory
  *      were renamed elsewhere.  (Technically, this could be done earlier
  *      in get_directory_renames(), except that would prevent us from
index 6d1e8d02dfe7863cef5bbbe27b555d30fda8c5b7..dfb863d80835254ce363f22160606e0aa85c21e8 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -1592,7 +1592,7 @@ void set_ref_status_for_push(struct ref *remote_refs, int send_mirror,
                        else
                                /*
                                 * If the ref isn't stale, and is reachable
-                                * from from one of the reflog entries of
+                                * from one of the reflog entries of
                                 * the local branch, force the update.
                                 */
                                force_ref_update = 1;
index c7b392794bccb8d0038c7876b01323a3a7d3157f..e6e3c8f552cd66fedaccbadb49cb47facb3f3863 100755 (executable)
@@ -182,7 +182,7 @@ test_expect_success 'rename errors out early when deleting non-existent branch'
        )
 '
 
-test_expect_success 'rename errors out early when when new name is invalid' '
+test_expect_success 'rename errors out early when new name is invalid' '
        test_config remote.foo.vcs bar &&
        echo "fatal: '\''invalid...name'\'' is not a valid remote name" >expect &&
        test_must_fail git remote rename foo invalid...name 2>actual &&
index 1d3fdcc997a4c4f67c0801bdca7020f222aa0150..ef35a548854a29dd3aa6c24aaecb8e2fd414e89c 100755 (executable)
@@ -330,7 +330,7 @@ test_expect_success 'git-svn works in a bare repository' '
        git svn fetch ) &&
        rm -rf bare-repo
        '
-test_expect_success 'git-svn works in in a repository with a gitdir: link' '
+test_expect_success 'git-svn works in a repository with a gitdir: link' '
        mkdir worktree gitdir &&
        ( cd worktree &&
        git svn init "$svnrepo" &&