threads / discuss / 52986

Re: Feature Request: git config for stash -u

Subject: Re: Feature Request: git config for stash -u

## tl;dr

2 messages between Mar 13, 2020 and Mar 13, 2020.

replies: 1people: 2as markdown or json

Juan José López Villar· Mar 13, 2020, 09:36 UTC · lore
Hello!

I was wondering if a git configuration could be made for including by default untracked files to git stash, so every time it runs it is like it had the -u flag appended. For example: stash.includeUntracked

Thanks for your attention!

Regards Juan José López Villar

Junio C Hamano· Mar 13, 2020, 19:30 UTC · re: Juan José López Villar · lore
Juan José López Villar <jjoselvill@gmail.com> writes:
> I was wondering if a git configuration could be made for including by
> default untracked files to git stash, so every time it runs it is like
> it had the -u flag appended. For example: stash.includeUntracked

It probably won't be just an addition of a configuration variable, but it would also need to adjust the command line option so that a configured stash.includeUntracked==true can be countermanded from the command line (e.g. "git stash --no-include-untracked").

Are you interested in running with your idea to implement it?

← back to recent threads