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
-

JDS January 26th, 2010 @ 08:21 PM
Here's the code formatted:
% 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 -

-

JDS January 27th, 2010 @ 06:50 PM
I did mention this before, so it's likely. I'm basing this on 0.7.1. Yet another reasons for a release ;). Is there a pre-release anywhere to test?
-

-

Johannes Gilger September 12th, 2010 @ 01:42 PM
- Milestone set to 0.8
- State changed from new to open
- Milestone order changed from 0 to 0
This does NOT work in Nathan's branch yet! The search-box for files only works for absolute paths as well. I'm queueing this for 0.8, but it's not critical.
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.
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