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

Re: [PATCH] [RFC PATCH] stash save/push: add --index-only option

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 13, 2020, 05:04 UTC
Message-ID
<xmqqblq3t6w1.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAOc6etbkMJf9qSNMU4fD4KeHE6NuMRUuQf_cBos_oxuYwaaeAA@mail.gmail.com>
Edmundo Carmona Antoranz <eantoranz@gmail.com> writes:
Show 12 quoted lines
> On Wed, Feb 12, 2020 at 5:50 PM Edmundo Carmona Antoranz
> <eantoranz@gmail.com> wrote:
>>
>> Allow git-stash to save only the content of what's in staging area.
>> No working tree files (unstaged or untracked) will be added
>> to the stash nor will be modified then the opreration finishes.
>>
>
> Sorry for the double tag. This is not fully completed code. Wanted to
> know if the community thinks it's something worth developing and if
> I'm heading in the right direction in terms of the code that I'm
> hitting.

I am not sure if you explained how useful the "feature" being proposed is, which is a very important skill to exercise to entice readers to start reading and helping your code.

Why is it useful to be able to do this? It is unclear at least to me.

By the way, per "git help cli", the name for this new option that is more in line with the rest of the system would be "--cached"; it would tell Git to work only on the data in the index (as opposed to the working tree files). .

Previous: Edmundo Carmona AntoranzNext: Edmundo Carmona Antoranz
Message 3 of 6 in “stash save/push: add --index-only option”
  1. [RFC PATCH] stash save/push: add --index-only optionEdmundo Carmona Antoranz, Feb 12, 2020
  2. Edmundo Carmona AntoranzFeb 12, 2020
  3. Junio C HamanoFeb 13, 2020
  4. Edmundo Carmona AntoranzFeb 13, 2020
  5. Junio C HamanoFeb 13, 2020
  6. Edmundo Carmona AntoranzFeb 13, 2020

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.