nqminhuit / gis

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

[Feature] Return list of edited file (including staged) from all modules #74

Closed nqminhuit closed 4 months ago

nqminhuit commented 4 months ago

so that we can use the list to integrate with Emacs

$ gis files
module1/path/to/filechanged1
module1/path/to/filechanged2
module2/path/to/changed1

or with current impl, we can get this output:

$ gis files
module1
  path/to/filechanged1
  path/to/filechanged2
module2
  path/to/changed1
nqminhuit commented 4 months ago

git diff --name-only will show all modified files (not include staged files) include --staged to exclude modified and include only staged files

nqminhuit commented 4 months ago

what i got so far:

11:36:32> gis files
small-git-root-module
  README.md
  fantastic-octo-chainsaw
  small-git-domain
small-git-api
small-git-schema
small-git-shared
small-git-craft
small-git-domain
  path1/file-in-test.sh
  text-1
  text-8
small-git-app
studious-eureka
fantastic-octo-chainsaw
  text-1
  text-22
  text-40
  text-9
literate-octo-invention
silver-tribble
nqminhuit commented 4 months ago

final results:

13:24:07> gis files
small-git-root-module/README.md
small-git-domain/path1/file-in-test.sh
small-git-domain/text-1
small-git-domain/text-8
fantastic-octo-chainsaw/text-1
fantastic-octo-chainsaw/text-22
fantastic-octo-chainsaw/text-40
fantastic-octo-chainsaw/text-9