#145 ✓resolved
Paul G

RevList cmd line options don't work on osx

Reported by Paul G | May 5th, 2009 @ 08:32 PM

I can't seem to get any of the RevList style command line options to work. For example, these commands from the manual all fail to work as advertised. Instead, the command line arguments are interpreted by gitx as names of non-existent branches:

$ gitx -Scool # this opens gitx with Branch set to "-Scool"

Even the leading -- arg doesn't seem to delimit branches from paths

$ gitx -- Documentation # this opens gitx with Branch set to "-- Documentation"

I'm running on OSX with the follow versions. BTW I am not using screen.

$ gitx -v

This is GitX version 0.6.2

Using git found at /Users/.../bin/git, version 1.5.5

Any idea if I am doing something wrong or if this is a bug?

Comments and changes to this ticket

  • Johannes Gilger

    Johannes Gilger May 20th, 2009 @ 05:16 PM

    • State changed from “new” to “small”

    This is not an error but merely a display-glitch, since our RevSpecifier format doesn't deal with -- <filename>. So, the output you get from "gitx -- file.m" is correct, but the title in the branch-name isn't. Even "gitx <branch> -- <file>" works correct.

    I'm leaving this open should anyone (including me) find the time to scratch that itch.

  • Paul G

    Paul G May 20th, 2009 @ 05:20 PM

    It is not showing the correct output for me.

    No matter which file I specify on the command line, gitx always opens without any content in any of the windows. Both the "commits" and "diffs" panes are empty. The "diffs" pane has the following odd headers on top of it:

    SHA:
    Author: Pieter de Bie
    Date: Pieter de Bie
    Subject: Pieter de Bie

  • Paul G

    Paul G May 20th, 2009 @ 05:23 PM

    Here's a screenshot showing how it opens for me:

    http://chunder.net/gitx.png

  • Pieter de Bie

    Pieter de Bie May 20th, 2009 @ 05:29 PM

    looks like it can't find any revisions to match. You have to give GitX
    the path to file relative to the root of the repository. So, something
    like cd dir && gitx -- file_in_subdir won't work, but cd dir && gitx
    -- dir/file_in_subdir should work. Can you try that?

  • Paul G

    Paul G May 20th, 2009 @ 05:46 PM

    I appreciate the help debugging this issue. It's the only thing that keeps me going back to gitk.

    I tried every possible variation of the invocation you suggest. All of them produce a result like the screenshot I included above.

    ~/git$ ls -ld .git # confirming I am at the root of the git repo

    drwxr-xr-x 20 paul paul 680 May 20 08:37 .git

    $ ls -l django/corporate/urls.py # this is the file I'm going to use

    -rw-r--r-- 1 paul paul 1350 Feb 6 15:42 django/corporate/urls.py

    $ git log --pretty=oneline django/corporate/urls.py # Confirming that git knows about it

    fb5466bd59ffd765a7296b05cd245bc48b618417 added a db model to populate
    ...

    # All of these commands produce the same empty gitx window

    ~/git$ gitx -- django/corporate/urls.py

    ~/git$ gitx -- ./django/corporate/urls.py

    ~/git$ cd django/corporate/

    ~/git/django/corporate$ gitx -- django/corporate/urls.py

    ~/git/django/corporate$ gitx -- ./django/corporate/urls.py

  • Johannes Gilger

    Johannes Gilger May 20th, 2009 @ 05:47 PM

    Hm, now I reproduced your error as well. What certainly does work as a (stupid) workaround in the meantime is specifically supplying the branchname as well: gitx master -- file.txt

  • Paul G

    Paul G May 20th, 2009 @ 05:56 PM

    Tried that. Doesn't help me.

    All the command line args just show up in the Branch pulldown control in the UI as "trunk -- django/corporate/urls.py"

  • Pieter de Bie

    Pieter de Bie May 20th, 2009 @ 06:03 PM

    The thing in the branch pulldown is correct (That's how custom
    parameters are displayed). There's a problem somewhere else, but I
    can't reproduce it.

  • Paul G

    Paul G September 7th, 2009 @ 10:44 PM

    FYI, the newest 0.7 release still exhibits this bug.

  • Pieter de Bie

    Pieter de Bie September 7th, 2009 @ 11:09 PM

    Can you try this version?

    http://gitx.frim.nl/Downloads/Nightly.app.zip

    The 'gitx -- README.txt' should work in any case, and I just fixed the
    'gitx README.txt' case.

    It might not work for you, as the -- version doesn't work either. It's
    very weird, if this doesn't work, can you look in Console for any
    error messages?

  • Paul G

    Paul G September 7th, 2009 @ 11:49 PM

    It didn't work, but I saw this error in Console:

    9/7/09 Sep 7, 2:46:29 PM [0x0-0x59059].nl.frim.GitX[6712] fatal: unrecognized argument: --children

    I upgraded my git command line tools from 1.5.5 to 1.6.4.2 and it started working. Look like gitx was using a command line option not present in 1.5.5.

    Thanks for helping me debug!

  • Pieter de Bie

    Pieter de Bie September 8th, 2009 @ 12:07 AM

    Thanks for debugging this. I've updated GitX to require at least
    1.6.0, which includes the --children option.

  • Pieter de Bie

    Pieter de Bie September 8th, 2009 @ 12:08 AM

    • State changed from “small” to “resolved”

    [state:resolved]

  • Paul G

    Paul G November 5th, 2009 @ 11:18 PM

    This stopped working for me again. I am now using Version 0.7.1 (v0.7.1) of gitx.

    Unlike the last time, I don't see any useful errors in the system.log:

    Nov 5 14:18:04 paul [0x0-0x68b68b].nl.frim.GitX[86894]: fatal: Not a git repository (or any of the parent directories): .git
    Nov 5 14:18:10 paul [0x0-0x68c68c].nl.frim.GitX[86924]: fatal: Not a git repository (or any of the parent directories): .git
    Nov 5 14:18:10 paul GitX[86924]: GitX(86924,0xb0103000) malloc: free_garbage: garbage ptr = 0x109c480, has non-zero refcount = 1
    Nov 5 14:18:10 paul GitX[86924]: GitX(86924,0xb0103000) malloc: free_garbage: garbage ptr = 0x109d0d0, has non-zero refcount = 1
    Nov 5 14:18:10 paul GitX[86924]: GitX(86924,0xb0103000) malloc: free_garbage: garbage ptr = 0x109e240, has non-zero refcount = 1
    Nov 5 14:18:10 paul GitX[86924]: GitX(86924,0xb0103000) malloc: free_garbage: garbage ptr = 0x109edb0, has non-zero refcount = 1
    Nov 5 14:18:10 paul GitX[86924]: Loaded 0 commits in 0.458532 seconds
    Nov 5 14:18:10 paul [0x0-0x68c68c].nl.frim.GitX[86924]: GitX(86924,0xb0103000) malloc: free_garbage: garbage ptr = 0x109c480, has non-zero refcount = 1
    Nov 5 14:18:10 paul [0x0-0x68c68c].nl.frim.GitX[86924]: GitX(86924,0xb0103000) malloc: free_garbage: garbage ptr = 0x109d0d0, has non-zero refcount = 1
    Nov 5 14:18:10 paul [0x0-0x68c68c].nl.frim.GitX[86924]: GitX(86924,0xb0103000) malloc: free_garbage: garbage ptr = 0x109e240, has non-zero refcount = 1
    Nov 5 14:18:10 paul [0x0-0x68c68c].nl.frim.GitX[86924]: GitX(86924,0xb0103000) malloc: free_garbage: garbage ptr = 0x109edb0, has non-zero refcount = 1

  • lloylawcollege
  • skywebppc (at gmail)

    skywebppc (at gmail) December 30th, 2019 @ 12:33 PM

    i-LEND is an online marketplace connecting borrowers and lenders for loans. Although i-LEND verifies credentials of registered users on the site, it does not guarantee any loan offers by lenders nor does it guarantee any repayments by borrowers. Users make offers/loan requests at their own discretion with the understanding of the risks involved in such transactions including loss of entire capital and/or no guarantee of recovery. Please read our Legal agreements to understand more.

    online loans Personal Loans Online Money Invest P2P

  • skywebppc (at gmail)

    skywebppc (at gmail) December 30th, 2019 @ 12:39 PM

    • Tag changed from command-line to online loans, personal loans

    i-LEND is an online marketplace connecting borrowers and lenders for loans. Although i-LEND verifies credentials of registered users on the site, it does not guarantee any loan offers by lenders nor does it guarantee any repayments by borrowers. Users make offers/loan requests at their own discretion with the understanding of the risks involved in such transactions including loss of entire capital and/or no guarantee of recovery. Please read our Legal agreements to understand more.

    online loans Personal Loans Online Money Invest P2P

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

Pages