threads / bug / 42310

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

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

## tl;dr

One message between May 13, 2016 and May 13, 2016.

replies: 0people: 1as markdown or json

Daniel Lenski· May 13, 2016, 18:17 UTC · lore
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

← back to recent threads