app-gitgot
app-gitgot copied to clipboard
`got st` should have an option to ignore dirty submodules
Hi,
as the title says, it would be great for got status
to have an --ignore-submodules
switch, so that repositories containing dirty submodules would not show up as being dirty. Personally, I'd like it to ignore modified content
and untracked content
submodules, yet report new commits
, however, ignoring them completely would be fine, too.
For example, at work we have several Rails engines which are tested against a dummy clone of the main application. git status
reports like this:
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: spec/dummy (modified content, untracked content)
#
no changes added to commit (use "git add" and/or "git commit -a")
Thanks, Malte
Sorry for letting this languish for so long. I'm not opposed to this change, but I don't really use submodules for anything, so I'm unlikely to write this code. I've tagged the issue 'wishlist' and will leave it open. Hopefully another submodule user will see it and be inspired.