* pu/pb/git_config: CommitView/Gistie: Use github.user and github.login Add a way to retrieve values from .git/config files
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.
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.
We already catch this in our code, so this was just confusing the debug output.
This is probably the most common non-branch GitX option, so let's add it by default
There's no need to, as we can just retrieve it from the WindowControllers array.
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.
This changes a lot of code, so quick review: * RepositoryDocumentController now returns the document without selecting a ref * PBGitWindowController now optionally shows the default view, or selects no view at all * PBGitRepository keeps a pointer to its WindowController so that it can change views
This is somewhat hackish, in that it reloads all commits after deleting a ref, but at least it works
This kept going broken, so now instead of Interface Builder bindings, we create the binding ourselves
This was accidentally added after the xib splitting
This simplifies the procedure used to walk revisions by only loading in commits if the branch selection was changed.
We don't need the old initialisation anymore
This allows you to add and select specific branches