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

2 messages from 2020-03-13 to 2020-03-13. Participants: Juan José López Villar, Junio C Hamano.
Thread: https://gitlist.dev/t/52986

## Juan José López Villar, 2020-03-13 09:36

Subject: Re: Feature Request: git config for stash -u
Message-ID: <CACTq9vvv+_cEv3Epk3tku47qogH0b8oUtVWUEt=tX5UGzxQZ6g@mail.gmail.com>
URL: https://gitlist.dev/e/CACTq9vvv%2B_cEv3Epk3tku47qogH0b8oUtVWUEt%3DtX5UGzxQZ6g%40mail.gmail.com
In-Reply-To: <CACTq9vuZO_wHhzBKsm=SOTcyXq3e=ur4NmNG9B-g=p5OXMuCNg@mail.gmail.com>

```
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, 2020-03-13 19:30

Subject: Re: Feature Request: git config for stash -u
Message-ID: <xmqqpndgaw91.fsf@gitster.c.googlers.com>
URL: https://gitlist.dev/e/xmqqpndgaw91.fsf%40gitster.c.googlers.com
In-Reply-To: <CACTq9vvv+_cEv3Epk3tku47qogH0b8oUtVWUEt=tX5UGzxQZ6g@mail.gmail.com>

```
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?

```
