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

Re: [PATCH] stash: Add stash.showFlag config variable

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 28, 2015, 01:08 UTC
Message-ID
<xmqq614043u0.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1440683528-11725-1-git-send-email-namhyung@gmail.com>
Namhyung Kim <namhyung@gmail.com> writes:
> +stash.showFlag::
> +	The default option to pass to `git stash show` when no option is
> +	given. The default is '--stat'.  See description of 'show' command
> +	in linkgit:git-stash[1].

Doesn't the same discussion in $gmane/275752 apply here? By designing the configuration variable in a sloppy way, this change will force us to spawn "git diff" via the shell forever, even after somebody ports "git stash" to C.

Which is not great.
Perhaps a pair of new booleans
 - stash.showStat (defaults to true but you can turn it off)
 - stash.showPatch (defaults to false but you can turn it on)
or something along that line might be sufficient and more palatable.
I dunno.
[Footnote]

*1* Besides, showFlag is a strange configuration variable name. I thought that by setting it to true, you are making "git stash" command to somehow show some kind of a flag when it does its operation ;-).

Previous: Namhyung KimNext: Namhyung Kim
Message 6 of 9 in “stash: Add stash.showFlag config variable”
  1. stash: Add stash.showFlag config variableNamhyung Kim, Aug 27, 2015
  2. SZEDER GáborAug 27, 2015
  3. Namhyung KimAug 27, 2015
  4. Eric SunshineAug 28, 2015
  5. Namhyung KimAug 28, 2015
  6. Junio C HamanoAug 28, 2015
  7. Namhyung KimAug 28, 2015
  8. Junio C HamanoAug 28, 2015
  9. Namhyung KimAug 29, 2015

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.