long listing version of `gita ll` that lists modified filenames for each repo
yellowtailfan opened this issue · 4 comments
yellowtailfan commented
It would be handy if gita ll --long
showed a list of modified but uncommitted files under each repo. Possibly files with untracked changes would be useful as well.
nosarthur commented
I incline to not implement this.
If you have a group defined, you can achieve something similar by gita st <group-name>
. For example, on my computer:
22:35 ~ $ gita ll
gita json [*↓] skip invalid repo when reading groups.csv (#226) (1 year, 4 months ago)
gita-wt2 clone-enhancement [⇕] add spaceship status (2 days ago)
gita-wt3 clone-g [*↑] support clone -g option to add cloned repo to a group (19 minutes ago)
22:35 ~ $ gita context
mega-gita: gita gita-wt2 gita-wt3
22:35 ~ $ gita st mega-gita
gita: On branch json
gita: Your branch is behind 'master' by 14 commits, and can be fast-forwarded.
gita: (use "git pull" to update your local branch)
gita:
gita: Changes not staged for commit:
gita: (use "git add <file>..." to update what will be committed)
gita: (use "git restore <file>..." to discard changes in working directory)
gita: modified: gita/__main__.py
gita: modified: setup.py
gita:
gita: no changes added to commit (use "git add" and/or "git commit -a")
gita-wt2: On branch clone-enhancement
gita-wt2: Your branch and 'origin/master' have diverged,
gita-wt2: and have 3 and 6 different commits each, respectively.
gita-wt2: (use "git pull" to merge the remote branch into yours)
gita-wt2:
gita-wt2: nothing to commit, working tree clean
gita-wt3: On branch clone-g
gita-wt3: Your branch is ahead of 'origin/master' by 1 commit.
gita-wt3: (use "git push" to publish your local commits)
gita-wt3:
gita-wt3: Changes not staged for commit:
gita-wt3: (use "git add <file>..." to update what will be committed)
gita-wt3: (use "git restore <file>..." to discard changes in working directory)
gita-wt3: modified: setup.py
gita-wt3:
gita-wt3: no changes added to commit (use "git add" and/or "git commit -a")
The gita stat
command may be useful too
yellowtailfan commented
Aha thanks for the tip. Yes once I defined a group gita st
works very nicely!
A minor improvement might be to make gita st
without a group name just display results for all registered repos, which would be similar to how gita ll
behaves already.
nosarthur commented
please try v0.16.6.3
I enabled that behavior for st
and stat
yellowtailfan commented
Wonderful, thank you! 🙇