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

gitk bug? Tree view doesn't show all contents in non-top-level directory

From
DLDaniel Lenski <dlenski@gmail.com>
Date
May 13, 2016, 18:17 UTC
Message-ID
<loom.20160513T195919-67@post.gmane.org>
Hi all,

I have been running into a bug in gitk, wherein it doesn't show the complete contents of the repository in the Tree view, when invoked from a subdirectory of the working tree (as opposed to the top level).

The bug is very simple to reproduce:
  $ git --version
  git version 2.8.2
  $ mkdir test
  $ cd test
  $ git init
  $ mkdir subdir
  $ touch a.txt subdir/b.txt
  $ git add a.txt subdir/b.txt 
  $ git ci -m test
  $ gitk &         # All files are shown in Tree view
  $ cd subdir/
  $ gitk &         # Only files under subdir/ are shown in Tree view

The bug seems to only affect the Tree view, *not* the Patch view. All modified files are shown in the Patch view. (I think the Patch view may have been fixed in 2011: http://thread.gmane.org/gmane.comp.version-control.git/170853)

Thanks, Dan Lenski

Message 1 of 1 in “gitk bug? Tree view doesn't show all contents in non-top-level directory”
  1. Daniel LenskiMay 13, 2016

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.