]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-submodule.txt
submodule update: allow custom command to update submodule working tree
[thirdparty/git.git] / Documentation / git-submodule.txt
index e5767134b1a2a84c284e87c900948e4530b25576..2f18f7daf80139802e787b9dd22899776dd67ec9 100644 (file)
@@ -159,7 +159,9 @@ update::
        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`.
+       `--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.
 +
 If the submodule is not yet initialized, and you just want to use the
 setting as stored in .gitmodules, you can automatically initialize the