Skip to contentSkip to conversation

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

DISCUSSION Daniel Lenski 1 participant 1 message Jun 16, 2016

lore
Share & tools
lore
#0 lore raw

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