#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

  • JDS

    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
    
  • Pieter de Bie

    Pieter de Bie January 27th, 2010 @ 05:39 PM

    I think I fixed this in my master branch?

  • JDS

    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?

  • JDS

    JDS January 29th, 2010 @ 06:11 PM

    I just built your master and this is corrected.

  • Johannes Gilger

    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.

  • Ashwin kumar

    Ashwin kumar July 2nd, 2018 @ 08:40 AM

    Seriously i want to know how do i fix connections to wireless displays in windows 10 mobile there are so many tutorial but i don't think that will be helpful,so if you guys have any solution for this then share it to me.

  • killy

    killy August 2nd, 2018 @ 06:49 AM

    Great stuf It is is loved by a lot of people as they are the coffee chain which offers not only coffee but other beverages as their core menu. Dutch Bros Coffee Menu is mostly famous for their drive-through coffee stands all around America. https://www.foodmenuwithprices.com/dutch-bros-menu-prices/ Dutch Bros also offers a variety of coffee in hot and iced variety, several fruit flavored smoothies and their own special energy drink Blue Rebel.

  • ravi pavagi

    ravi pavagi September 4th, 2018 @ 03:38 PM

    There has been a lot debate regarding the networking system that is societal. Because the acceptable me an to run exactly this test men and women are encouraging the exam. NTA NEET 2019 Most implied that NTA NEET 2019 remain in style because of its students that were underdeveloped.

  • xtream bee

    xtream bee November 1st, 2018 @ 08:55 AM

    i'm encountering assortment of almost no inquiries of wellbeing with my dynamic weblog, which I need to ask one issue more secure. ar you encountering any tips?
    ntaneet.nic.in

  • hendry

    hendry November 8th, 2018 @ 10:26 AM

    This article mentioned about gitx path works only from the top-level path. It demonstrates the issue of the behavior of git-log. Further information is also included. But I did understand it clearly. So please share some videos.diamonds rings near me

  • adi singh

    adi singh November 13th, 2018 @ 11:24 AM

    JEE Main admit card are going to released soon it will be released on 17th December 2018. Candidates can download admit card form the official site of NTA. The admit card can be download online only in order to download JEE Main admit card candidates must have there log in id and password only those candidates can view jee main 2019 admit card who have submit jee main application form successfully.

    JEE Main 2019 admit card download here

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