Skip to content

StatusMatrix

Jessica de Lima Fileto edited this page Jun 14, 2020 · 3 revisions

Statuses Example

[
  ["a.txt", 0, 2, 0], // new, untracked
  ["b.txt", 0, 2, 2], // added, staged
  ["c.txt", 0, 2, 3], // added, staged, with unstaged changes
  ["d.txt", 1, 1, 1], // unmodified
  ["e.txt", 1, 2, 1], // modified, unstaged
  ["f.txt", 1, 2, 2], // modified, staged
  ["g.txt", 1, 2, 3], // modified, staged, with unstaged changes
  ["h.txt", 1, 0, 1], // deleted, unstaged
  ["i.txt", 1, 0, 0], // deleted, staged
]
HEAD  WORKDIR  STAGE	git status --short equivalent
0	0	0	``
0	0	3	AD
0	2	0	??
0	2	2	A
0	2	3	AM
1	0	0	D
1	0	1	D
1	0	3	MD
1	1	0	D + ??
1	1	1	``
1	1	3	MM
1	2	0	D + ??
1	2	1	M
1	2	2	M
1	2	3	MM

Clone this wiki locally