X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgitmodules.txt;h=5daf750d1942f3b97844b4ef378daf9346cb46d4;hb=0d8fc3efc65df74a2b39b3f9798861a1b2055b62;hp=f8d122a8b90ca7cb4920768ca23fd9a27574ffdf;hpb=731ab1f55e7ba736b24708a63e93a7c8d581a4d6;p=git.git diff --git a/Documentation/gitmodules.txt b/Documentation/gitmodules.txt index f8d122a8b..5daf750d1 100644 --- a/Documentation/gitmodules.txt +++ b/Documentation/gitmodules.txt @@ -7,7 +7,7 @@ gitmodules - defining submodule properties SYNOPSIS -------- -gitmodules +$GIT_WORK_DIR/.gitmodules DESCRIPTION @@ -30,6 +30,17 @@ submodule..path:: submodule..url:: Defines an url from where the submodule repository can be cloned. +submodule..update:: + Defines what to do when the submodule is updated by the superproject. + If 'checkout' (the default), the new commit specified in the + superproject will be checked out in the submodule on a detached HEAD. + If 'rebase', the current branch of the submodule will be rebased onto + the commit specified in the superproject. If 'merge', the commit + specified in the superproject will be merged into the current branch + in the submodule. + This config option is overridden if 'git submodule update' is given + the '--merge' or '--rebase' options. + EXAMPLES --------