Skip to content

gitx cli: args ignored #291

Open
Open
@treyharris

Description

@treyharris

The http://rowanj.github.io/gitx/ docs say:

GitX itself is fairly simple. Most of its power is in the gitx binary, which
you should install through the menu. the gitx binary supports most of git rev-list's arguments. For example, you can run gitx --all to display all
branches in the repository, or gitx -- Documentation to only show commits
relating to the 'Documentation' subdirectory. With gitx -Shaha, gitx will
only show commits that contain the word 'haha'. Similarly, with gitx v0.2.1.., you will get a list of all commits since version 0.2.1.

However, using as an example the Homebrew project, when I run
$ gitx

(without arguments) in a repo such as this one, tracking Homebrew, I get this:
gitxscreensnapz - gitx no args

bit if I quit GitX and then run:

$ gitx -- share

as suggested by the gitx -- Documentation example above, I get exactly the same window:
gitxscreensnapz - gitx -- share

If I follow the instructions to use git rev-list-like arguments, the command

$ gitx --all -- share

again gives precisely the same window.

To contrast, in that same working directory:

$ git rev-list --all -- share | wc -l
     151

But, checking that first commit affecting share:

$ git log -n1 --pretty=medium --name-only -- share | cat
commit 21f11cd2807bf8fff34769f224af10cea0ae6289
Author: Mike McQuaid <mike@mikemcquaid.com>
Date:   Sat Jan 11 20:26:08 2014 +0000

    man: add reinstall command.

share/man/man1/brew.1

It isn't on the list displayed in the GitX-Dev screenshots, so the issue here isn't that all the commits touch share--it's that gitx seems to be ignoring the arguments given it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions