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

Re: wishlist: git gui not listing untracked files in unstaged list

From
Jeff King <peff@peff.net>
Date
Mar 10, 2010, 22:36 UTC
Message-ID
<20100310223650.GA4710@sigill.intra.peff.net>
In-Reply-To
<20100310223210.GC4223@sigill.intra.peff.net>
On Wed, Mar 10, 2010 at 05:32:10PM -0500, Jeff King wrote:
Show 14 quoted lines
> It depends on the shell. Bash will expand it in _some_ cases (but not
> this one). Dash never will:
> 
>   $ echo $BASH_VERSION
>   4.1.0(1)-release
>   $ echo foo=~/foo ;# expands
>   foo=/home/peff/foo
>   $ echo --foo=~/foo ;# does not
>   --foo=~/foo
>   $ dash -c 'echo foo=~/foo' ;# does not
>   foo=~/foo
> 
> That being said, my gut feeling is for git-gui to fix it, too. Shell
> callers can use $HOME if they want.

By the way, the only reason I hesitated on that in the first mail is that it feels a little unelegant. If a config variable grows --path semantics, _all_ script callers have to be updated. It might be nice to have "git config --dwim core.excludesfile" which does the "normal" expansion. But that would mean a central DWIM-list, and git config is sprinkled throughout the codebase, so it's probably not worth the refactoring effort.

-Peff
Previous: Jeff KingNext: Johannes Sixt
Message 10 of 13 in “wishlist: git gui not listing untracked files in unstaged list”
  1. MALAISE PascalMar 10, 2010
  2. Junio C HamanoMar 10, 2010
  3. Shawn O. PearceMar 10, 2010
  4. MALAISE PascalMar 10, 2010
  5. Patrick HigginsMar 10, 2010
  6. Jeff KingMar 10, 2010
  7. Shawn O. PearceMar 10, 2010
  8. Junio C HamanoMar 10, 2010
  9. Jeff KingMar 10, 2010
  10. Jeff KingMar 10, 2010
  11. Johannes SixtMar 11, 2010
  12. Jeff KingMar 11, 2010
  13. Andreas SchwabMar 11, 2010

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.