Skip to contentSkip to conversation

Correct mispellings of ".gitmodule" to ".gitmodules"

PATCH In review Robert P. J. Day 2 participants 2 messages Feb 14, 2018 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Correct mispellings of ".gitmodule" to ".gitmodules"

There are a small number of misspellings, ".gitmodule", scattered throughout the code base, correct them ... no apparent functional changes.

 Documentation/technical/api-submodule-config.txt | 2 +-
 contrib/subtree/git-subtree.txt                  | 2 +-
 submodule-config.c                               | 4 ++--
 t/t5526-fetch-submodules.sh                      | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

---

can't believe i forgot to sign my own patch. le *sigh* ...

Documentation/technical/api-submodule-config.txt +1 -1
index 3dce003fd..ee907c4a8 100644
@@ -4,7 +4,7 @@ submodule config cache API
 The submodule config cache API allows to read submodule
 configurations/information from specified revisions. Internally
 information is lazily read into a cache that is used to avoid
-unnecessary parsing of the same .gitmodule files. Lookups can be done by
+unnecessary parsing of the same .gitmodules files. Lookups can be done by
 submodule path or name.
 
 Usage
contrib/subtree/git-subtree.txt +1 -1
index 60d76cddd..352deda69 100644
@@ -28,7 +28,7 @@ as a subdirectory of your application.
 
 Subtrees are not to be confused with submodules, which are meant for
 the same task. Unlike submodules, subtrees do not need any special
-constructions (like .gitmodule files or gitlinks) be present in
+constructions (like .gitmodules files or gitlinks) be present in
 your repository, and do not force end-users of your
 repository to do anything special or to understand how subtrees
 work. A subtree is just a subdirectory that can be
submodule-config.c +2 -2
index 2aa8a1747..602ba8ca8 100644
@@ -9,7 +9,7 @@
 /*
  * submodule cache lookup structure
  * There is one shared set of 'struct submodule' entries which can be
- * looked up by their sha1 blob id of the .gitmodule file and either
+ * looked up by their sha1 blob id of the .gitmodules file and either
  * using path or name as key.
  * for_path stores submodule entries with path as key
  * for_name stores submodule entries with name as key
@@ -91,7 +91,7 @@ static void submodule_cache_clear(struct submodule_cache *cache)
 	/*
 	 * We iterate over the name hash here to be symmetric with the
 	 * allocation of struct submodule entries. Each is allocated by
-	 * their .gitmodule blob sha1 and submodule name.
+	 * their .gitmodules blob sha1 and submodule name.
 	 */
 	hashmap_iter_init(&cache->for_name, &iter);
 	while ((entry = hashmap_iter_next(&iter)))
t/t5526-fetch-submodules.sh +1 -1
index a552ad4ea..74486c73b 100755
@@ -485,7 +485,7 @@ test_expect_success "don't fetch submodule when newly recorded commits are alrea
 	)
 '
 
-test_expect_success "'fetch.recurseSubmodules=on-demand' works also without .gitmodule entry" '
+test_expect_success "'fetch.recurseSubmodules=on-demand' works also without .gitmodules entry" '
 	(
 		cd downstream &&
 		git fetch --recurse-submodules

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw

Documentation/technical/api-submodule-config.txt

Quoted 17 lines · Robert P. J. Day

There are a small number of misspellings, ".gitmodule", scattered throughout the code base, correct them ... no apparent functional changes.

 Documentation/technical/api-submodule-config.txt | 2 +-
 contrib/subtree/git-subtree.txt                  | 2 +-
 submodule-config.c                               | 4 ++--
 t/t5526-fetch-submodules.sh                      | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

---

can't believe i forgot to sign my own patch. le *sigh* ...

Documentation/technical/api-submodule-config.txt +0 -0

Just for future reference, the diffstat and summary comes _after_ the three-dash line, before which is your sign-off, and after which you can have additional comment like "can't believe...".

No need to resend, as I can remove the cruft from the log message while queuing.

Thanks. The patch looks good. Will queue.