Skip to content

Is there away to make git status to follow the ignore rules in .gitmodules? Alternatively, can you specify all instead of dirty for ignore-submodules? #2876

@patenteng

Description

@patenteng

Currently, the command git status --ignore-submodules=dirty is used when displaying the git status. This ignores explicitly specified ignore rules in the .gitmodules file for each module.

Is there a way to make the git status follow the rules in .gitmodules. This will be the equivalent of git status. Alternatively, can you specify all instead of dirty for ignore-submodules?

I think the option is specified here, but I'm not sure.

rg GIT_SUBMODULE_IGNORE
gitstatus/src/repo.cc
280:  opt.ignore_submodules = GIT_SUBMODULE_IGNORE_DIRTY;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions