archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <>
	Paul-Sebastian Ungureanu <>
Subject: Re: [FR] Allow `git stash create` to include untracked changes
Date: Mon, 28 Oct 2019 10:51:09 +0900	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <> ('s message of "Sat, 26 Oct 2019 17:38:34 +0300") writes:

> Would it be possible for `git stash create` to include untracked
> changes (probably the same way `git stash push --include-untracked`
> does)?

Doesn't the subcommand have -u/--include-untracked option?

... goes and looks ...

create_stash () {


	while test $# != 0
		case "$1" in
			untracked=${1?"BUG: create_stash () -u requires an argument"}

It is entirely possible that with recent push to rewrite scripted
Porcelain commands to builtin/, we may have lost a feature or two
by accident.

  ... goes and checks ...

And it does appear that builtin/stash.c::create_stash() lacks
support for command line arguments since d4788af8 ("stash: convert
create to builtin", 2019-02-25).

Would doing



	git config --global stash.usebuiltin no

help in the meantime???

  reply	other threads:[~2019-10-28  1:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-26 14:38 dev
2019-10-28  1:51 ` Junio C Hamano [this message]
2019-10-28 16:03   ` Kipras Melnikovas
2019-10-29  7:29   ` Johannes Schindelin
2019-10-31 13:40     ` Thomas Gummerer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \
    --subject='Re: [FR] Allow `git stash create` to include untracked changes' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).