#234 open
JDS

gitx -- path works only from top level path

Reported by JDS | January 26th, 2010 @ 08:19 PM | in 0.8

gitx -- path only work for paths relative to the top level of the git repository. This demonstrates the issue: not the behavior of git-log vs. gitx:

% mkdir tmp % cd tmp % git init Initialized empty Git repository in /Users/jdsmith/tmp/.git/
% echo "test1" > test1 % git add test1 % mkdir foo % echo "test2" > foo/test2 % git add foo/test2 % git commit -a [master (root-commit) 307caab] First changes 2 files changed, 2 insertions(+), 0 deletions(-) create mode 100644 foo/test2 create mode 100644 test1 % git log -- foo/test2 % cd foo % git log -- test2 % cd .. % gitx -- foo/test2 % cd foo % gitx -- test2

Notice that git log works both from the top level, and in the subdirectory, whereas gitx works only from the top level. I'd guess at some point the working directory is being changed by gitx or GitX to the top level of the repository, before the git calls occur.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

GitX is the nice-looking gitk clone for OS X

People watching this ticket

Pages