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

1 messages from 2016-05-13 to 2016-05-13. Participants: Daniel Lenski.
Thread: https://gitlist.dev/t/42310

## Daniel Lenski, 2016-05-13 18:17

Subject: gitk bug? Tree view doesn't show all contents in non-top-level directory
Message-ID: <loom.20160513T195919-67@post.gmane.org>
URL: https://gitlist.dev/e/loom.20160513T195919-67%40post.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

```
