Junio C Hamano | 215a7ad | 2005-09-07 17:26:23 -0700 | [diff] [blame] | 1 | git-status(1) |
| 2 | ============= |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | c3f0baa | 2007-01-18 15:53:37 -0800 | [diff] [blame] | 6 | git-status - Show the working tree status |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Martin von Zweigbergk | 7791a1d | 2011-07-01 22:38:26 -0400 | [diff] [blame] | 11 | [verse] |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 12 | 'git status' [<options>...] [--] [<pathspec>...] |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 13 | |
| 14 | DESCRIPTION |
| 15 | ----------- |
Jeff King | 2099bca | 2007-12-08 04:00:31 -0500 | [diff] [blame] | 16 | Displays paths that have differences between the index file and the |
| 17 | current HEAD commit, paths that have differences between the working |
| 18 | tree and the index file, and paths in the working tree that are not |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 19 | tracked by Git (and are not ignored by linkgit:gitignore[5]). The first |
Jeff King | 2099bca | 2007-12-08 04:00:31 -0500 | [diff] [blame] | 20 | are what you _would_ commit by running `git commit`; the second and |
Thomas Rast | 0b444cd | 2010-01-10 00:33:00 +0100 | [diff] [blame] | 21 | third are what you _could_ commit by running 'git add' before running |
Jeff King | 2099bca | 2007-12-08 04:00:31 -0500 | [diff] [blame] | 22 | `git commit`. |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 23 | |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 24 | OPTIONS |
| 25 | ------- |
Junio C Hamano | fb6ff94 | 2006-08-07 22:41:32 -0700 | [diff] [blame] | 26 | |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 27 | -s:: |
| 28 | --short:: |
| 29 | Give the output in the short-format. |
| 30 | |
Michael J Gruber | 46077fa | 2010-05-25 16:52:03 +0200 | [diff] [blame] | 31 | -b:: |
| 32 | --branch:: |
| 33 | Show the branch and tracking info even in short-format. |
| 34 | |
Jeff Hostetler | c4f596b | 2016-08-05 18:00:28 -0400 | [diff] [blame] | 35 | --porcelain[=<version>]:: |
Jeff King | fc17df0 | 2011-05-26 22:31:51 -0400 | [diff] [blame] | 36 | Give the output in an easy-to-parse format for scripts. |
| 37 | This is similar to the short output, but will remain stable |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 38 | across Git versions and regardless of user configuration. See |
Jeff King | fc17df0 | 2011-05-26 22:31:51 -0400 | [diff] [blame] | 39 | below for details. |
Jeff Hostetler | c4f596b | 2016-08-05 18:00:28 -0400 | [diff] [blame] | 40 | + |
| 41 | The version parameter is used to specify the format version. |
| 42 | This is optional and defaults to the original version 'v1' format. |
Jeff King | 6f15787 | 2009-09-05 04:55:37 -0400 | [diff] [blame] | 43 | |
Jeff King | f3f47a1 | 2012-10-18 21:15:50 +0700 | [diff] [blame] | 44 | --long:: |
| 45 | Give the output in the long-format. This is the default. |
| 46 | |
Michael Haggerty | 9c589d9 | 2015-04-23 14:27:46 +0200 | [diff] [blame] | 47 | -v:: |
| 48 | --verbose:: |
| 49 | In addition to the names of files that have been changed, also |
| 50 | show the textual changes that are staged to be committed |
| 51 | (i.e., like the output of `git diff --cached`). If `-v` is specified |
| 52 | twice, then also show the changes in the working tree that |
| 53 | have not yet been staged (i.e., like the output of `git diff`). |
| 54 | |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 55 | -u[<mode>]:: |
| 56 | --untracked-files[=<mode>]:: |
Clemens Buchacher | 4cc6260 | 2011-02-21 21:05:25 +0100 | [diff] [blame] | 57 | Show untracked files. |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 58 | + |
Matthieu Moy | 2b594bf | 2015-09-19 09:47:50 +0200 | [diff] [blame] | 59 | The mode parameter is used to specify the handling of untracked files. |
| 60 | It is optional: it defaults to 'all', and if specified, it must be |
| 61 | stuck to the option (e.g. `-uno`, but not `-u no`). |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 62 | + |
Clemens Buchacher | 4cc6260 | 2011-02-21 21:05:25 +0100 | [diff] [blame] | 63 | The possible options are: |
| 64 | + |
Junio C Hamano | 5823eb2 | 2013-03-15 09:53:48 -0700 | [diff] [blame] | 65 | - 'no' - Show no untracked files. |
| 66 | - 'normal' - Shows untracked files and directories. |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 67 | - 'all' - Also shows individual files in untracked directories. |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 68 | + |
Junio C Hamano | 5823eb2 | 2013-03-15 09:53:48 -0700 | [diff] [blame] | 69 | When `-u` option is not used, untracked files and directories are |
| 70 | shown (i.e. the same as specifying `normal`), to help you avoid |
| 71 | forgetting to add newly created files. Because it takes extra work |
| 72 | to find untracked files in the filesystem, this mode may take some |
Nguyễn Thái Ngọc Duy | aeb6f8b | 2015-03-08 17:12:47 +0700 | [diff] [blame] | 73 | time in a large working tree. |
| 74 | Consider enabling untracked cache and split index if supported (see |
| 75 | `git update-index --untracked-cache` and `git update-index |
| 76 | --split-index`), Otherwise you can use `no` to have `git status` |
Junio C Hamano | 5823eb2 | 2013-03-15 09:53:48 -0700 | [diff] [blame] | 77 | return more quickly without showing untracked files. |
| 78 | + |
Clemens Buchacher | 4cc6260 | 2011-02-21 21:05:25 +0100 | [diff] [blame] | 79 | The default can be changed using the status.showUntrackedFiles |
| 80 | configuration variable documented in linkgit:git-config[1]. |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 81 | |
Jens Lehmann | 46a958b | 2010-06-25 16:56:47 +0200 | [diff] [blame] | 82 | --ignore-submodules[=<when>]:: |
| 83 | Ignore changes to submodules when looking for changes. <when> can be |
Jens Lehmann | aee9c7d | 2010-08-06 00:39:25 +0200 | [diff] [blame] | 84 | either "none", "untracked", "dirty" or "all", which is the default. |
| 85 | Using "none" will consider the submodule modified when it either contains |
| 86 | untracked or modified files or its HEAD differs from the commit recorded |
| 87 | in the superproject and can be used to override any settings of the |
Jens Lehmann | 302ad7a | 2010-08-06 00:40:48 +0200 | [diff] [blame] | 88 | 'ignore' option in linkgit:git-config[1] or linkgit:gitmodules[5]. When |
Jens Lehmann | 46a958b | 2010-06-25 16:56:47 +0200 | [diff] [blame] | 89 | "untracked" is used submodules are not considered dirty when they only |
| 90 | contain untracked content (but they are still scanned for modified |
| 91 | content). Using "dirty" ignores all changes to the work tree of submodules, |
| 92 | only changes to the commits stored in the superproject are shown (this was |
| 93 | the behavior before 1.7.0). Using "all" hides all changes to submodules |
| 94 | (and suppresses the output of submodule summaries when the config option |
Nguyễn Thái Ngọc Duy | da0005b | 2015-03-11 16:32:45 -0400 | [diff] [blame] | 95 | `status.submoduleSummary` is set). |
Jens Lehmann | 46a958b | 2010-06-25 16:56:47 +0200 | [diff] [blame] | 96 | |
Junio C Hamano | 150b493 | 2011-06-02 09:07:11 -0700 | [diff] [blame] | 97 | --ignored:: |
| 98 | Show ignored files as well. |
| 99 | |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 100 | -z:: |
Jeff King | 6f15787 | 2009-09-05 04:55:37 -0400 | [diff] [blame] | 101 | Terminate entries with NUL, instead of LF. This implies |
Jeff Hostetler | c4f596b | 2016-08-05 18:00:28 -0400 | [diff] [blame] | 102 | the `--porcelain=v1` output format if no other format is given. |
Jeff King | 2099bca | 2007-12-08 04:00:31 -0500 | [diff] [blame] | 103 | |
Nguyễn Thái Ngọc Duy | 323d053 | 2012-04-13 17:54:39 +0700 | [diff] [blame] | 104 | --column[=<options>]:: |
| 105 | --no-column:: |
| 106 | Display untracked files in columns. See configuration variable |
| 107 | column.status for option syntax.`--column` and `--no-column` |
| 108 | without options are equivalent to 'always' and 'never' |
| 109 | respectively. |
| 110 | |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 111 | |
| 112 | OUTPUT |
| 113 | ------ |
| 114 | The output from this command is designed to be used as a commit |
Dirk Wallenstein | 22d55ae | 2014-03-21 15:10:18 +0100 | [diff] [blame] | 115 | template comment. |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 116 | The default, long format, is designed to be human readable, |
Jeff King | 043b5cd | 2011-05-26 22:31:11 -0400 | [diff] [blame] | 117 | verbose and descriptive. Its contents and format are subject to change |
| 118 | at any time. |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 119 | |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 120 | The paths mentioned in the output, unlike many other Git commands, are |
Jeff King | 2099bca | 2007-12-08 04:00:31 -0500 | [diff] [blame] | 121 | made relative to the current directory if you are working in a |
Jeff King | 46f721c | 2007-12-07 16:26:07 -0500 | [diff] [blame] | 122 | subdirectory (this is on purpose, to help cutting and pasting). See |
| 123 | the status.relativePaths config option below. |
Junio C Hamano | c786050 | 2007-12-06 09:15:39 -0800 | [diff] [blame] | 124 | |
Jeff King | fc17df0 | 2011-05-26 22:31:51 -0400 | [diff] [blame] | 125 | Short Format |
| 126 | ~~~~~~~~~~~~ |
| 127 | |
Jeff King | 043b5cd | 2011-05-26 22:31:11 -0400 | [diff] [blame] | 128 | In the short-format, the status of each path is shown as |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 129 | |
| 130 | XY PATH1 -> PATH2 |
| 131 | |
Jeff King | 6cf378f | 2012-04-26 04:51:57 -0400 | [diff] [blame] | 132 | where `PATH1` is the path in the `HEAD`, and the " `-> PATH2`" part is |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 133 | shown only when `PATH1` corresponds to a different path in the |
Philip Oakley | 7c45cee | 2014-10-19 15:17:15 +0100 | [diff] [blame] | 134 | index/worktree (i.e. the file is renamed). The `XY` is a two-letter |
Eric Raymond | e92e9cd | 2010-04-23 13:40:15 -0400 | [diff] [blame] | 135 | status code. |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 136 | |
Jeff King | 6cf378f | 2012-04-26 04:51:57 -0400 | [diff] [blame] | 137 | The fields (including the `->`) are separated from each other by a |
Eric Raymond | e92e9cd | 2010-04-23 13:40:15 -0400 | [diff] [blame] | 138 | single space. If a filename contains whitespace or other nonprintable |
| 139 | characters, that field will be quoted in the manner of a C string |
| 140 | literal: surrounded by ASCII double quote (34) characters, and with |
| 141 | interior special characters backslash-escaped. |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 142 | |
Philip Oakley | 7c45cee | 2014-10-19 15:17:15 +0100 | [diff] [blame] | 143 | For paths with merge conflicts, `X` and `Y` show the modification |
Eric Raymond | e92e9cd | 2010-04-23 13:40:15 -0400 | [diff] [blame] | 144 | states of each side of the merge. For paths that do not have merge |
| 145 | conflicts, `X` shows the status of the index, and `Y` shows the status |
| 146 | of the work tree. For untracked paths, `XY` are `??`. Other status |
| 147 | codes can be interpreted as follows: |
| 148 | |
| 149 | * ' ' = unmodified |
| 150 | * 'M' = modified |
| 151 | * 'A' = added |
| 152 | * 'D' = deleted |
| 153 | * 'R' = renamed |
| 154 | * 'C' = copied |
| 155 | * 'U' = updated but unmerged |
| 156 | |
Junio C Hamano | 50cebda | 2011-06-29 17:03:12 -0700 | [diff] [blame] | 157 | Ignored files are not listed, unless `--ignored` option is in effect, |
| 158 | in which case `XY` are `!!`. |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 159 | |
| 160 | X Y Meaning |
| 161 | ------------------------------------------------- |
| 162 | [MD] not updated |
| 163 | M [ MD] updated in index |
| 164 | A [ MD] added to index |
Eric Raymond | e92e9cd | 2010-04-23 13:40:15 -0400 | [diff] [blame] | 165 | D [ M] deleted from index |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 166 | R [ MD] renamed in index |
| 167 | C [ MD] copied in index |
| 168 | [MARC] index and work tree matches |
| 169 | [ MARC] M work tree changed since index |
| 170 | [ MARC] D deleted in work tree |
| 171 | ------------------------------------------------- |
| 172 | D D unmerged, both deleted |
| 173 | A U unmerged, added by us |
| 174 | U D unmerged, deleted by them |
| 175 | U A unmerged, added by them |
| 176 | D U unmerged, deleted by us |
| 177 | A A unmerged, both added |
| 178 | U U unmerged, both modified |
| 179 | ------------------------------------------------- |
| 180 | ? ? untracked |
Junio C Hamano | 150b493 | 2011-06-02 09:07:11 -0700 | [diff] [blame] | 181 | ! ! ignored |
Junio C Hamano | 9e4b7ab | 2009-08-15 02:27:39 -0700 | [diff] [blame] | 182 | ------------------------------------------------- |
| 183 | |
Michael J Gruber | 46077fa | 2010-05-25 16:52:03 +0200 | [diff] [blame] | 184 | If -b is used the short-format status is preceded by a line |
| 185 | |
Jeff Hostetler | 1cd828d | 2016-08-11 10:46:00 -0400 | [diff] [blame^] | 186 | ## branchname tracking info |
Michael J Gruber | 46077fa | 2010-05-25 16:52:03 +0200 | [diff] [blame] | 187 | |
Jeff Hostetler | 1cd828d | 2016-08-11 10:46:00 -0400 | [diff] [blame^] | 188 | Porcelain Format Version 1 |
| 189 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Jeff King | fc17df0 | 2011-05-26 22:31:51 -0400 | [diff] [blame] | 190 | |
Jeff Hostetler | 1cd828d | 2016-08-11 10:46:00 -0400 | [diff] [blame^] | 191 | Version 1 porcelain format is similar to the short format, but is guaranteed |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 192 | not to change in a backwards-incompatible way between Git versions or |
Jeff King | fc17df0 | 2011-05-26 22:31:51 -0400 | [diff] [blame] | 193 | based on user configuration. This makes it ideal for parsing by scripts. |
| 194 | The description of the short format above also describes the porcelain |
| 195 | format, with a few exceptions: |
| 196 | |
| 197 | 1. The user's color.status configuration is not respected; color will |
| 198 | always be off. |
| 199 | |
| 200 | 2. The user's status.relativePaths configuration is not respected; paths |
| 201 | shown will always be relative to the repository root. |
| 202 | |
| 203 | There is also an alternate -z format recommended for machine parsing. In |
Eric Raymond | e92e9cd | 2010-04-23 13:40:15 -0400 | [diff] [blame] | 204 | that format, the status field is the same, but some other things |
Jeff King | 715e716 | 2011-05-26 22:32:41 -0400 | [diff] [blame] | 205 | change. First, the '\->' is omitted from rename entries and the field |
| 206 | order is reversed (e.g 'from \-> to' becomes 'to from'). Second, a NUL |
Eric Raymond | e92e9cd | 2010-04-23 13:40:15 -0400 | [diff] [blame] | 207 | (ASCII 0) follows each filename, replacing space as a field separator |
| 208 | and the terminating newline (but a space still separates the status |
| 209 | field from the first filename). Third, filenames containing special |
| 210 | characters are not specially formatted; no quoting or |
Jeff King | d4a6bf1 | 2012-05-07 17:09:04 -0400 | [diff] [blame] | 211 | backslash-escaping is performed. |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 212 | |
Jeff Hostetler | 1cd828d | 2016-08-11 10:46:00 -0400 | [diff] [blame^] | 213 | Porcelain Format Version 2 |
| 214 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 215 | |
| 216 | Version 2 format adds more detailed information about the state of |
| 217 | the worktree and changed items. Version 2 also defines an extensible |
| 218 | set of easy to parse optional headers. |
| 219 | |
| 220 | Header lines start with "#" and are added in response to specific |
| 221 | command line arguments. Parsers should ignore headers they |
| 222 | don't recognize. |
| 223 | |
| 224 | ### Branch Headers |
| 225 | |
| 226 | If `--branch` is given, a series of header lines are printed with |
| 227 | information about the current branch. |
| 228 | |
| 229 | Line Notes |
| 230 | ------------------------------------------------------------ |
| 231 | # branch.oid <commit> | (initial) Current commit. |
| 232 | # branch.head <branch> | (detached) Current branch. |
| 233 | # branch.upstream <upstream_branch> If upstream is set. |
| 234 | # branch.ab +<ahead> -<behind> If upstream is set and |
| 235 | the commit is present. |
| 236 | ------------------------------------------------------------ |
| 237 | |
| 238 | ### Changed Tracked Entries |
| 239 | |
| 240 | Following the headers, a series of lines are printed for tracked |
| 241 | entries. One of three different line formats may be used to describe |
| 242 | an entry depending on the type of change. Tracked entries are printed |
| 243 | in an undefined order; parsers should allow for a mixture of the 3 |
| 244 | line types in any order. |
| 245 | |
| 246 | Ordinary changed entries have the following format: |
| 247 | |
| 248 | 1 <XY> <sub> <mH> <mI> <mW> <hH> <hI> <path> |
| 249 | |
| 250 | Renamed or copied entries have the following format: |
| 251 | |
| 252 | 2 <XY> <sub> <mH> <mI> <mW> <hH> <hI> <X><score> <path><sep><origPath> |
| 253 | |
| 254 | Field Meaning |
| 255 | -------------------------------------------------------- |
| 256 | <XY> A 2 character field containing the staged and |
| 257 | unstaged XY values described in the short format, |
| 258 | with unchanged indicated by a "." rather than |
| 259 | a space. |
| 260 | <sub> A 4 character field describing the submodule state. |
| 261 | "N..." when the entry is not a submodule. |
| 262 | "S<c><m><u>" when the entry is a submodule. |
| 263 | <c> is "C" if the commit changed; otherwise ".". |
| 264 | <m> is "M" if it has tracked changes; otherwise ".". |
| 265 | <u> is "U" if there are untracked changes; otherwise ".". |
| 266 | <mH> The octal file mode in HEAD. |
| 267 | <mI> The octal file mode in the index. |
| 268 | <mW> The octal file mode in the worktree. |
| 269 | <hH> The object name in HEAD. |
| 270 | <hI> The object name in the index. |
| 271 | <X><score> The rename or copy score (denoting the percentage |
| 272 | of similarity between the source and target of the |
| 273 | move or copy). For example "R100" or "C75". |
| 274 | <path> The pathname. In a renamed/copied entry, this |
| 275 | is the path in the index and in the working tree. |
| 276 | <sep> When the `-z` option is used, the 2 pathnames are separated |
| 277 | with a NUL (ASCII 0x00) byte; otherwise, a tab (ASCII 0x09) |
| 278 | byte separates them. |
| 279 | <origPath> The pathname in the commit at HEAD. This is only |
| 280 | present in a renamed/copied entry, and tells |
| 281 | where the renamed/copied contents came from. |
| 282 | -------------------------------------------------------- |
| 283 | |
| 284 | Unmerged entries have the following format; the first character is |
| 285 | a "u" to distinguish from ordinary changed entries. |
| 286 | |
| 287 | u <xy> <sub> <m1> <m2> <m3> <mW> <h1> <h2> <h3> <path> |
| 288 | |
| 289 | Field Meaning |
| 290 | -------------------------------------------------------- |
| 291 | <XY> A 2 character field describing the conflict type |
| 292 | as described in the short format. |
| 293 | <sub> A 4 character field describing the submodule state |
| 294 | as described above. |
| 295 | <m1> The octal file mode in stage 1. |
| 296 | <m2> The octal file mode in stage 2. |
| 297 | <m3> The octal file mode in stage 3. |
| 298 | <mW> The octal file mode in the worktree. |
| 299 | <h1> The object name in stage 1. |
| 300 | <h2> The object name in stage 2. |
| 301 | <h3> The object name in stage 3. |
| 302 | <path> The pathname. |
| 303 | -------------------------------------------------------- |
| 304 | |
| 305 | ### Other Items |
| 306 | |
| 307 | Following the tracked entries (and if requested), a series of |
| 308 | lines will be printed for untracked and then ignored items |
| 309 | found in the worktree. |
| 310 | |
| 311 | Untracked items have the following format: |
| 312 | |
| 313 | ? <path> |
| 314 | |
| 315 | Ignored items have the following format: |
| 316 | |
| 317 | ! <path> |
| 318 | |
| 319 | ### Pathname Format Notes and -z |
| 320 | |
| 321 | When the `-z` option is given, pathnames are printed as is and |
| 322 | without any quoting and lines are terminated with a NUL (ASCII 0x00) |
| 323 | byte. |
| 324 | |
| 325 | Otherwise, all pathnames will be "C-quoted" if they contain any tab, |
| 326 | linefeed, double quote, or backslash characters. In C-quoting, these |
| 327 | characters will be replaced with the corresponding C-style escape |
| 328 | sequences and the resulting pathname will be double quoted. |
| 329 | |
| 330 | |
Junio C Hamano | 31fcd63 | 2007-01-17 01:11:01 -0800 | [diff] [blame] | 331 | CONFIGURATION |
| 332 | ------------- |
| 333 | |
| 334 | The command honors `color.status` (or `status.color` -- they |
| 335 | mean the same thing and the latter is kept for backward |
| 336 | compatibility) and `color.status.<slot>` configuration variables |
| 337 | to colorize its output. |
| 338 | |
Jeff King | 46f721c | 2007-12-07 16:26:07 -0500 | [diff] [blame] | 339 | If the config variable `status.relativePaths` is set to false, then all |
Michael J Gruber | 482a6c1 | 2009-11-26 16:24:38 +0100 | [diff] [blame] | 340 | paths shown are relative to the repository root, not to the current |
| 341 | directory. |
Jeff King | 46f721c | 2007-12-07 16:26:07 -0500 | [diff] [blame] | 342 | |
Nguyễn Thái Ngọc Duy | da0005b | 2015-03-11 16:32:45 -0400 | [diff] [blame] | 343 | If `status.submoduleSummary` is set to a non zero number or true (identical |
Jeff King | 46b77a6 | 2009-09-05 04:52:18 -0400 | [diff] [blame] | 344 | to -1 or an unlimited number), the submodule summary will be enabled for |
| 345 | the long format and a summary of commits for modified submodules will be |
Jens Lehmann | bb58b69 | 2013-09-11 21:07:15 +0200 | [diff] [blame] | 346 | shown (see --summary-limit option of linkgit:git-submodule[1]). Please note |
| 347 | that the summary output from the status command will be suppressed for all |
| 348 | submodules when `diff.ignoreSubmodules` is set to 'all' or only for those |
| 349 | submodules where `submodule.<name>.ignore=all`. To also view the summary for |
| 350 | ignored submodules you can either use the --ignore-submodules=dirty command |
| 351 | line option or the 'git submodule summary' command, which shows a similar |
| 352 | output but does not honor these settings. |
Ping Yin | ac8d5af | 2008-04-12 23:05:32 +0800 | [diff] [blame] | 353 | |
Junio C Hamano | 56ae8df | 2008-05-28 16:55:27 -0700 | [diff] [blame] | 354 | SEE ALSO |
Josh Triplett | cedb8d5 | 2007-06-02 10:08:54 -0700 | [diff] [blame] | 355 | -------- |
Dan McGee | 5162e69 | 2007-12-29 00:20:38 -0600 | [diff] [blame] | 356 | linkgit:gitignore[5] |
Junio C Hamano | 31fcd63 | 2007-01-17 01:11:01 -0800 | [diff] [blame] | 357 | |
Junio C Hamano | 3f971fc | 2005-08-14 17:24:36 -0700 | [diff] [blame] | 358 | GIT |
| 359 | --- |
Christian Couder | 9e1f0a8 | 2008-06-06 09:07:32 +0200 | [diff] [blame] | 360 | Part of the linkgit:git[1] suite |