@@ -24,7 +24,7 @@ On the filesystem, a submodule usually (but not always - see FORMS below)
24
24
consists of (i) a Git directory located under the `$GIT_DIR/modules/`
25
25
directory of its superproject, (ii) a working directory inside the
26
26
superproject's working directory, and a `.git` file at the root of
27
- the submodule’ s working directory pointing to (i).
27
+ the submodule' s working directory pointing to (i).
28
28
29
29
Assuming the submodule has a Git directory at `$GIT_DIR/modules/foo/`
30
30
and a working directory at `path/to/bar/`, the superproject tracks the
@@ -33,7 +33,7 @@ in its `.gitmodules` file (see linkgit:gitmodules[5]) of the form
33
33
`submodule.foo.path = path/to/bar`.
34
34
35
35
The `gitlink` entry contains the object name of the commit that the
36
- superproject expects the submodule’ s working directory to be at.
36
+ superproject expects the submodule' s working directory to be at.
37
37
38
38
The section `submodule.foo.*` in the `.gitmodules` file gives additional
39
39
hints to Git's porcelain layer. For example, the `submodule.foo.url`
@@ -136,27 +136,27 @@ using older versions of Git.
136
136
+
137
137
It is possible to construct these old form repositories manually.
138
138
+
139
- When deinitialized or deleted (see below), the submodule’ s Git
139
+ When deinitialized or deleted (see below), the submodule' s Git
140
140
directory is automatically moved to `$GIT_DIR/modules/<name>/`
141
141
of the superproject.
142
142
143
143
* Deinitialized submodule: A `gitlink`, and a `.gitmodules` entry,
144
- but no submodule working directory. The submodule’ s Git directory
144
+ but no submodule working directory. The submodule' s Git directory
145
145
may be there as after deinitializing the Git directory is kept around.
146
146
The directory which is supposed to be the working directory is empty instead.
147
147
+
148
148
A submodule can be deinitialized by running `git submodule deinit`.
149
149
Besides emptying the working directory, this command only modifies
150
- the superproject’ s `$GIT_DIR/config` file, so the superproject’ s history
150
+ the superproject' s `$GIT_DIR/config` file, so the superproject' s history
151
151
is not affected. This can be undone using `git submodule init`.
152
152
153
153
* Deleted submodule: A submodule can be deleted by running
154
154
`git rm <submodule path> && git commit`. This can be undone
155
155
using `git revert`.
156
156
+
157
- The deletion removes the superproject’ s tracking data, which are
157
+ The deletion removes the superproject' s tracking data, which are
158
158
both the `gitlink` entry and the section in the `.gitmodules` file.
159
- The submodule’ s working directory is removed from the file
159
+ The submodule' s working directory is removed from the file
160
160
system, but the Git directory is kept around as it to make it
161
161
possible to checkout past commits without requiring fetching
162
162
from another repository.
0 commit comments