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

Re: gitk does not show path file list

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 24, 2009, 08:11 UTC
Message-ID
<7v1vjoibq8.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4B0B91DC.1020902@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 11 quoted lines
> Mark Blakeney schrieb:
>> This seems to me to be a straight out bug but given I've had no response here
>> and  given this is such a simple issue then I guess it's not a bug and I'm just
>> missing something? Please somebody, why does gitk (usually) not show the subset
>> list of files affected when you give it a path?
>> 
>> E.g. If I am in a src dir then "gitk ." does not list files. Neither does "gitk
>> $PWD" nor "gitk ../src". However "cd ..; git src" does list files!?
>
> gitk doesn't list the files in your examples because the patterns you gave
> are not initial substrings of any files in the list.
Yes, but if you are in src/ and run "gitk .", then...
 - clicking on a commit runs "diff-tree $commit .", that lists
   src/hello.c, src/goodbye.c, etc.
 - gitk tries to filter paths read from diff-tree with the "." given from
   the command line as the filter---it removes paths that do not match.
So the only case that would produce any output would be for you to have:
 src/src/hello.c
 src/frotz.c
and run
 cd src && gitk src

whose invocation of "diff-tree src" will show _only_ src/src/hello.c and then the filter procedure will limit it to whatever begins with src/ (which would be everything).

That does not sound very useful to me...
   
Previous: Johannes Sixt
Message 5 of 5 in “gitk does not show path file list”
  1. Mark BlakeneyNov 17, 2009
  2. Mark BlakeneyNov 24, 2009
  3. Junio C HamanoNov 24, 2009
  4. Johannes SixtNov 24, 2009
  5. Junio C HamanoNov 24, 2009

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.