git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Re: [FR] Allow `git stash create` to include untracked changes

From
Kipras Melnikovas <kipras@kipras.org>
Date
Oct 28, 2019, 16:03 UTC
Message-ID
<20191028160305.169851-1-kipras@kipras.org>
In-Reply-To
<xmqqa79lbpte.fsf@gitster-ct.c.googlers.com>

Hello, thank you for the info.

It seems like neither worked:

export GIT_TEST_STASH_USE_BUILTIN=no git config --global stash.usebuiltin no

The untracked files are still not stashed with `git stash create -u [some-argument]`, but are stashed successfully with `git stash push -u`, so unless I'm doing something wrong, this also doesn't help, sadly.

Also, if there are no modified changes (only untracked ones), then `git stash create [-u [some-arg]]` (the non-builtin stash) will not even give you a commit object's name, thus it probably does not create the commit object at all.
Also, the manual page of git-stash(1) not mention the `--include-untracked` option - this is why I posted in the first place.

$ man git-stash ... git stash create [<message>] git stash store [-m|--message <message>] [-q|--quiet] <commit> ...

---
Is there any chance to
* get the builtin stash to support `--include-untracked` option?
* figure out if the legacy stash also works as intended with the `-u [some-arg]` option
	* when there aren't any changes, except untracked/ignored ones, the commit object doesn't seem to be created (printed) at all
	* why does it even require an argument?
* update the manual page for git-stash(1)
* check if everything's fine with `git stash store` too, just in case:D
Is there anything else I need to do to get this issue reported or are you guys taking care of it?
---
My stuff:

$ git --version git version 2.23.0

$ uname -a Linux arch-usb 5.3.7-arch1-1-ARCH #1 SMP PREEMPT Fri Oct 18 00:17:03 UTC 2019 x86_64 GNU/Linux

Thank you for your time and support:) Kipras

Previous: Junio C HamanoNext: Johannes Schindelin
Message 3 of 5 in “[FR] Allow `git stash create` to include untracked changes”
  1. dev@kipras.orgOct 26, 2019
  2. Junio C HamanoOct 28, 2019
  3. Kipras MelnikovasOct 28, 2019
  4. Johannes SchindelinOct 29, 2019
  5. Thomas GummererOct 31, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.