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

Re: Interest in options for stash -k and -u by default

From
Kristoffer Haugsbakk <code@khaugsbakk.name>
Date
Feb 7, 2024, 21:42 UTC
Message-ID
<7c895747-22a1-48f6-89ce-d518fbd32285@app.fastmail.com>
In-Reply-To
<3470180e-2ef7-4393-9d32-92cd419727f5@gmail.com>
On Wed, Feb 7, 2024, at 21:59, Ricardo C wrote:
Show 18 quoted lines
> Hello,
>
>
> After some discussion on Mastodon[1], I decided to try my hand at creating
> configuration options that enable --keep-index and --include-untracked in
> git-stash by default. I have made a preliminary such patch[2], and some
> additional discussion[3] has encouraged me to try submitting it upstream.
>
> I am wondering whether this change is something that would even be considered
> for being accepted. The patch still needs some work (mainly documentation and
> tests), which I'd be happy to do if I knew there was upstream interest in this
> work.
>
> I would also appreciate feedback on the patch. Currently, it creates two
> separate options: stash.keepindex and stash.includeuntracked. These options
> set the default value of --keep-index and --include-untracked if not otherwise
> specified (e.g., --no-keep-index) and do not conflict with other options
> (e.g., --patch). More details are of course available in the source code[2].
The way I understand it:
• You already have a working implementation
• There already exists conventions for using config variables for
  defaults which then can be in turn overridden using the corresponding
  flags (the `--[no]-<flag>` pair)
So what’s the hold-up? :)
> I would also appreciate feedback on the patch.
That would be part of the patch series in any case.
-- 
Kristoffer Haugsbakk
Previous: Junio C Hamano
Message 3 of 3 in “Interest in options for stash -k and -u by default”
  1. Ricardo CFeb 7, 2024
  2. Junio C HamanoFeb 7, 2024
  3. Kristoffer HaugsbakkFeb 7, 2024

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.