Skip to content

Teach git stash and git commit the -A option #231

Open
@dscho

Description

@dscho

The git add -A command can be used to conveniently add all files, whether they are tracked or not yet tracked (excluding the ones ignored via .gitignore/.git/info/excludes).

This convenience would come in quite nicely in the stash/commit commands, too (in the latter case, many test cases could be simplified using this new option).

The git stash command already has the --include-untracked option that does this, but not the short-and-sweet short option -A. The git commit command does not have any equivalent (it has the --untracked-files option, but that is really just modifying the output of git status).

Sadly, we cannot add --all, too, as that is already used for something different in git stash: it includes the ignored files, too. Likewise, git commit --all commits all tracked files, and does not add the untracked files (unlike git add --all).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions