nqminhuit / gis

Java Command Line Application which extends Git for supporting git-modules
1 stars 0 forks source link

[bug] Could not distinguish staged or modified file when call `gis status` #26

Closed nqminhuit closed 2 years ago

nqminhuit commented 2 years ago

the ## from git status has a meaning:

for example: git output from vanilla git:

## master...origin/master
M  text-1
 M text-2

from gis:

  ## master...origin/master
  M text-1
  M text-2

SHOULD:

  ## master...origin/master
  M  text-1
   M text-2
nqminhuit commented 2 years ago

solution: use the option --porcelain=v2 (https://git-scm.com/docs/git-status#_porcelain_format_version_2)