]> rtime.felk.cvut.cz Git - git.git/blobdiff - Documentation/git-submodule.txt
submodule: Fix documentation of update subcommand
[git.git] / Documentation / git-submodule.txt
index 8e6af65da0e0f234315c42391a8bab42fc39abb6..c92908e262c59552736a887627b0a9cb2f4d8fbd 100644 (file)
@@ -154,14 +154,13 @@ If `--force` is specified, the submodule's work tree will be removed even if
 it contains local modifications.
 
 update::
-       Update the registered submodules, i.e. clone missing submodules and
-       checkout the commit specified in the index of the containing repository.
-       This will make the submodules HEAD be detached unless `--rebase` or
-       `--merge` is specified or the key `submodule.$name.update` is set to
-       `rebase`, `merge` or `none`. `none` can be overridden by specifying
-       `--checkout`. Setting the key `submodule.$name.update` to `!command`
-       will cause `command` to be run. `command` can be any arbitrary shell
-       command that takes a single argument, namely the sha1 to update to.
+       Update the registered submodules to match what the superproject
+       expects by cloning missing submodules and updating the working
+       tree of the submodules. The "updating" can take various forms
+       and can be configured in .git/config by the
+       `submodule.$name.update` key or by explicitely giving one of
+       '--checkout' (the default), '--merge' or '--rebase' options. See
+       linkgit:git-config[1] for details.
 +
 If the submodule is not yet initialized, and you just want to use the
 setting as stored in .gitmodules, you can automatically initialize the
@@ -302,7 +301,7 @@ the submodule itself.
        Checkout the commit recorded in the superproject on a detached HEAD
        in the submodule. This is the default behavior, the main use of
        this option is to override `submodule.$name.update` when set to
-       `merge`, `rebase` or `none`.
+       other value than `checkout`.
        If the key `submodule.$name.update` is either not explicitly set or
        set to `checkout`, this option is implicit.