Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple dirs and subdirs #16

Open
strboul opened this issue Mar 5, 2022 · 0 comments
Open

Allow multiple dirs and subdirs #16

strboul opened this issue Mar 5, 2022 · 0 comments
Assignees

Comments

@strboul
Copy link
Owner

strboul commented Mar 5, 2022

It can be useful to check the git status of the multiple dirs.

git-substatus ~/dir1 ~/dir2

It's also good to check the multiple sub-dirs (but cannot check dirs and sub-dirs at the same time).

git-substatus ~/dir1 ~/dir2 --subdirs

Think a bit more about how dirs and subdirs should be printed on the terminal.

Extra use case:

If you git track the system folders like /etc (via a tool like etckeeper) or ~/.config,
there can be a script written to get a git status of those folders such as:

system_git_status() {
  git-substatus --subdirs=\
    /etc, \
    "${XDG_CONFIG_HOME:-~/.config}", \
    "${XDG_DATA_HOME:-~/.local/share}" \
    --include-hidden
}
@strboul strboul self-assigned this Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant