Merge branch 'ss/submodule-shallow-doc'
authorJunio C Hamano <gitster@pobox.com>
Wed, 26 Apr 2017 06:39:07 +0000 (15:39 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Apr 2017 06:39:07 +0000 (15:39 +0900)
Doc update.

* ss/submodule-shallow-doc:
gitmodules: clarify what history depth a shallow clone has

1  2 
Documentation/gitmodules.txt
index 470062413f66b9873a918e1277a4fc02d9aa8ef2,6f39f247a0340af2832b7a9e07cb6a0b7f6161db..db5d47eb19b8f2aa21c11a9d3eedf40b9d71e84e
@@@ -66,26 -66,17 +66,26 @@@ submodule.<name>.fetchRecurseSubmodules
  
  submodule.<name>.ignore::
        Defines under what circumstances "git status" and the diff family show
 -      a submodule as modified. When set to "all", it will never be considered
 -      modified (but will nonetheless show up in the output of status and
 -      commit when it has been staged), "dirty" will ignore all changes
 -      to the submodules work tree and
 -      takes only differences between the HEAD of the submodule and the commit
 -      recorded in the superproject into account. "untracked" will additionally
 -      let submodules with modified tracked files in their work tree show up.
 -      Using "none" (the default when this option is not set) also shows
 -      submodules that have untracked files in their work tree as changed.
 -      If this option is also present in the submodules entry in .git/config of
 -      the superproject, the setting there will override the one found in
 +      a submodule as modified. The following values are supported:
 +
 +      all;; The submodule will never be considered modified (but will
 +          nonetheless show up in the output of status and commit when it has
 +          been staged).
 +
 +      dirty;; All changes to the submodule's work tree will be ignored, only
 +          committed differences between the HEAD of the submodule and its
 +          recorded state in the superproject are taken into account.
 +
 +      untracked;; Only untracked files in submodules will be ignored.
 +          Committed differences and modifications to tracked files will show
 +          up.
 +
 +      none;; No modifiations to submodules are ignored, all of committed
 +          differences, and modifications to tracked and untracked files are
 +          shown. This is the default option.
 +
 +      If this option is also present in the submodules entry in .git/config
 +      of the superproject, the setting there will override the one found in
        .gitmodules.
        Both settings can be overridden on the command line by using the
        "--ignore-submodule" option. The 'git submodule' commands are not
@@@ -93,8 -84,8 +93,8 @@@
  
  submodule.<name>.shallow::
        When set to true, a clone of this submodule will be performed as a
-       shallow clone unless the user explicitly asks for a non-shallow
-       clone.
+       shallow clone (with a history depth of 1) unless the user explicitly
+       asks for a non-shallow clone.
  
  
  EXAMPLES