@@ -24,7 +24,7 @@ On the filesystem, a submodule usually (but not always - see FORMS below)
2424consists of (i) a Git directory located under the `$GIT_DIR/modules/`
2525directory of its superproject, (ii) a working directory inside the
2626superproject'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).
2828
2929Assuming the submodule has a Git directory at `$GIT_DIR/modules/foo/`
3030and 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
3333`submodule.foo.path = path/to/bar`.
3434
3535The `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.
3737
3838The section `submodule.foo.*` in the `.gitmodules` file gives additional
3939hints to Git's porcelain layer. For example, the `submodule.foo.url`
@@ -136,27 +136,27 @@ using older versions of Git.
136136+
137137It is possible to construct these old form repositories manually.
138138+
139- When deinitialized or deleted (see below), the submodule’ s Git
139+ When deinitialized or deleted (see below), the submodule' s Git
140140directory is automatically moved to `$GIT_DIR/modules/<name>/`
141141of the superproject.
142142
143143 * 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
145145may be there as after deinitializing the Git directory is kept around.
146146The directory which is supposed to be the working directory is empty instead.
147147+
148148A submodule can be deinitialized by running `git submodule deinit`.
149149Besides 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
151151is not affected. This can be undone using `git submodule init`.
152152
153153 * Deleted submodule: A submodule can be deleted by running
154154`git rm <submodule path> && git commit`. This can be undone
155155using `git revert`.
156156+
157- The deletion removes the superproject’ s tracking data, which are
157+ The deletion removes the superproject' s tracking data, which are
158158both 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
160160system, but the Git directory is kept around as it to make it
161161possible to checkout past commits without requiring fetching
162162from another repository.
0 commit comments