Skip to content
Commits on Jun 20, 2009
  1. PBGitRepository: Clean up the readFromURL: method

    Pieter de Bie committed
    We used a BOOL value which was returned afterwards,
    but we might as well just return early and simplify everything
  2. PBGitRepository: Fix opening of large directories due to bug in NSFil…

    Benoit Cerrina committed with Pieter de Bie
    This commit changes  readFromFileWrapper:ofType:error: to readFromURL:ofType:error:.
    The default implementation of readFromURL calls readFromFileWrapper, but a bug
    in NSFileWrapper makes this fail with repositories with a large number of files
    (not sure if the fact that those files were in subdirectories matter or not).
    So instead we skip the whole FileWrapper thing, which we don't really use anyway,
    and just use the URL.
Commits on Jun 11, 2009
Commits on Jun 6, 2009
  1. @heipei

    PBGitRepository: Add method to remove branch

    heipei committed with Pieter de Bie
    This adds a removeBranch method similar to the addBranch method. It
    calls these methods when a branch is created/deleted in the UI, avoiding
    the cost of simply calling refresh afterwards.
    Signed-off-by: Johannes Gilger <>
Commits on May 27, 2009
  1. Merge branch 'stable'

    * stable:
      When selecting a folder in tree-view, display the
      PBGitRepository: Correctly indicate bare/non-bare repos
      Get rid of some unnecessary casts
      CommitController: Don't rewrap commit message when amending
      Release notes for 0.6.3
      PBGitCommit: Call git show with --no-color to be safe
      Info.plist: Fix handling of directories
      PBGitIndexController: fix uninitialized value
  2. @heipei

    PBGitRepository: Correctly indicate bare/non-bare repos

    heipei committed with
    This addresses an issue with non-bare repos which had no core.bare
    variable in the config. The isBareRepository-function would work
    on the full fileURL (pointing to the .git subdir), which in turn would
    indicate a bare repo (this is what git rev-parse --is-bare-repository
    returns in .git, and the opposite is true for the superdir).
    We work around by using the working-dir for a repo (and directly
    indicating a bare repo if there is no workdir). The only issue remaining
    is the case of a bare repo manually set to "core.bare = false".
    Signed-off-by: Johannes Gilger <>
  3. @d0k

    Get rid of some unnecessary casts

    d0k committed with
  4. Enable arguments to be passed to executeHook.

    Joe Fiorini committed with
    Some hooks, such as commit-msg and
    prepare-commit-msg require at least one argument.
    This allows executeHook to take an array of
    arguments to be passed on to the hook.
Commits on May 18, 2009
  1. @heipei

    PBGitRepository: Display branch-name in window title

    heipei committed with Pieter de Bie
    This returns not only the name of the git-dir but also the current
    branch (or detached HEAD if no local branch is checked out).
    When reloading the refs (which also happens when checking-out using
    GitX), the displayName-method is called, updating the window-title.
    Signed-off-by: Johannes Gilger <>
  2. Allow executing of hooks

    Pieter de Bie committed
Commits on Feb 6, 2009
  1. @oyamauchi @heipei
Commits on Jan 25, 2009
  1. PBGitCommit: Don't store refs

    We already keep this dictionary in our repository. Rather than adding a
    pointer to it on every commit in our rev walk, just look it up lazily in the
    dictionary when we need to. That cuts down some time in the initial revwalk
    and also removes some stupid code :)
Commits on Jan 19, 2009
  1. Fix file path construction when using NSString

    Rick Berry committed with
Commits on Dec 22, 2008
  1. CommitView: Add option to add files to .gitignore

    Mark Bestley committed with
    In the commit view, add an option in the context menu to have git
    ignore them by adding the file names to .gitignore file in the root
    of the workarea.
Commits on Nov 26, 2008
  1. Fix memory leaks

Commits on Nov 24, 2008
  1. Create a new SpeedTest target

    This adds a new target 'SpeedTest', which just loads in a repository
    and displays how long it takes to load the revision. This is handy for
    testing the speed of the revwalking mechanism
Commits on Nov 19, 2008
  1. HistoryView: Remove the BranchController

    This wasn't used anyway. A good idea would be to create a new
    branchcontroller that takes care of all these revs, rather than
    letting PBGitRepository take care of that
  2. WIP: Use a nicer branches menu

Commits on Nov 18, 2008
  1. CommitView: move index functions to separate controller

    This merges functionality that was previously stored in the
    combination of PBGitCommitController / PBChangedFile to a
    dedicated controller, PBGitIndexController.
Commits on Nov 1, 2008
  1. WebHistoryController: Move ref deletion to RefController

    That's why it's there, after all. This also makes the system
    more robust and catches some more errors.
    The next thing this enables is to also allow right-clicking
    on refs in the commit list.
Commits on Oct 28, 2008
  1. PBGitRepository: Don't return a ref if we error out

    This fixes the -parseReference: method to return nil if
    there is an error in the git call. This also simplifies
    our commit controller.
Commits on Oct 14, 2008
  1. Merge branch 'pu/pb/git_config'

    * pu/pb/git_config:
      CommitView/Gistie: Use github.user and github.login
      Add a way to retrieve values from .git/config files
Commits on Oct 13, 2008
  1. GitRepository: Cache HEAD ref

    Since 63523d0 (History view:
    Make lozenge of currently checked out branch (HEAD) bold, same as gitk.),
    -[PBGitRepository headRef] was called every time a cell needed redrawing.
    This made GitX slow overall, but especially when resizing the window.
    So, it's better to cache the value. We'll still reload it with an
    explicit refresh though.
  2. Add a way to retrieve values from .git/config files

    This introduces the PBGitConfig class. It is KVC compliant as far
    as I can see, in that you can actually bind to it in IB and use
    ValueForKeyPath to retrieve values. It currently only handles
    strings; it should be possible to add functions to process
    booleans and numbers to it.
Commits on Oct 4, 2008
  1. GitRepository: Quiet a git error when resolving symbolic ref

    We already catch this in our code, so this was just
    confusing the debug output.
Commits on Oct 3, 2008
  1. GitRepository: Add an "all branches" option in branches list

    This is probably the most common non-branch GitX option, so
    let's add it by default
Commits on Oct 2, 2008
  1. @clj

    GitRepository: Skip empty lines when parsing refs

    clj committed with
    This fixes loading repositories.
Commits on Sep 28, 2008
  1. Don't store the windowcontroller in an iVar

    There's no need to, as we can just retrieve it from
    the WindowControllers array.
  2. Fix branch reloading

    This fixes a regression in 86606ef, where the branches array was
    created anew every time the branches were reloaded, causing you to
    lose current branch selection.
Commits on Sep 26, 2008
Something went wrong with that request. Please try again.