Commit Graph

72 Commits

Author SHA1 Message Date
Pieter de Bie e329493154 Move toolbar to view xib 2008-10-03 17:18:26 +02:00
Pieter de Bie 9a927bcad4 RepositoryWindow: Prettify view selector 2008-10-02 22:13:56 +02:00
Pieter de Bie 7347d7d254 RepositoryWindow: Move view selector to the left and add a separator 2008-10-02 22:04:59 +02:00
Ciarán Walsh e1704729f9 Adding view-specific toolbars. 2008-09-30 23:14:02 +01:00
Pieter de Bie 709547ac85 Add Commit/History options in View menu 2008-09-26 23:30:52 +02:00
Pieter de Bie d3f97bdfcb GitWindowController: bind selected view to controller
This used to be bound to the UserDefaults, but that introduced the
bug that switching the view in one window also switched it in other
open windows.

See 2e7cd5268d
2008-09-26 00:35:05 +02:00
Pieter de Bie b257f0090a Fix compiler warnings 2008-09-24 17:19:58 +02:00
Ciarán Walsh 2e7cd5268d Remember selected view (history or commit) 2008-09-23 22:58:53 +01:00
Pieter de Bie e9f4830e1c Show a pretty status bar 2008-09-23 02:40:59 +02:00
Pieter de Bie 7f337cda2a Show current branch in branch menu
This kept going broken, so now instead of Interface Builder bindings,
we create the binding ourselves
2008-09-20 11:24:21 +02:00
Pieter de Bie aa2d76f261 Re-enable the search field 2008-09-20 10:30:56 +02:00
Pieter de Bie 6edc25413f Merge branch 'commit_view'
* commit_view:
  Add a commit view mockup

Conflicts:
	PBGitWindowController.h
	PBGitWindowController.m
2008-09-20 10:27:45 +02:00
Pieter de Bie 80ae07984c Hopefully make the searchfield not break 2008-09-20 10:26:21 +02:00
Pieter de Bie 43d7285ac1 Add a commit view mockup 2008-09-19 22:25:48 +02:00
Pieter de Bie 65a40fe778 Merge branch 'master' of git://github.com/vijaykiran/gitx
Conflicts:
	English.lproj/MainMenu.xib
2008-09-19 21:41:07 +02:00
Pieter de Bie 708c08a293 First part of splitting views 2008-09-19 21:36:52 +02:00
Pieter de Bie 194fe0ca3f Show the selected branch on startup
First, I had to disable this setting to show the branch,
now I have to enable it again?...
2008-09-19 19:56:14 +02:00
Pieter de Bie f705bd46ab Merge branch 'insta-decorate'
* insta-decorate:
  Add framework to support removing refs
  Show refs in HTML view
  Allow copy and pasting of web source by pressing 'c'
  Refactor cellInfo structure
  Only decorate if we need to
  Multithread test
  Add objective c diff header

Conflicts:
	GitX.xcodeproj/project.pbxproj
2008-09-19 19:22:40 +02:00
Pieter de Bie 86a34b64ae Remember window location when quitting GitX 2008-09-19 18:36:24 +02:00
Pieter de Bie f8270f38fb Add framework to support removing refs 2008-09-19 14:40:51 +02:00
Pieter de Bie 6e978dcea4 Refactor cellInfo structure
This makes the PBGitRevisionCell a bit nicer by retrieving all values
from the PBGitCommit object itself, and using another NSTextFieldCell to
draw the text.

This mean that PBGitGrapher now stores its information in the PBGitCommit's,
rather than in a custom grapher array. Also, because we don't need the
grapher to display refs anymore, the ref labels are also displayed when
using path limiting (for example, 'gitx -- Makefile').
2008-09-18 01:27:05 +02:00
vijaykiran 5db16ccf73 Changed "Hide GitTest" to "Hide GitX" in the menu. 2008-09-15 19:45:00 +02:00
Pieter de Bie c2e871229c Hopefully select the correct branch on startup
This removes the 'Avoid empty selection' attribute on the branch controller.
This should hopefully help with selecting the default branch correctly in
the menu.
2008-09-14 19:47:00 +02:00
Pieter de Bie f57a03d378 Version 0.3.1 2008-09-13 00:24:29 +02:00
Pieter de Bie c3c4f98c66 Allow hunk navigation by using j/k keys 2008-09-12 22:12:58 +02:00
Pieter de Bie e3af731305 Use a PBGitRevSpecifier to specify possible branches 2008-09-12 17:28:08 +02:00
Pieter de Bie 84d929d6fc Allow scrolling of the webView by pressing space 2008-09-12 11:54:45 +02:00
Pieter de Bie e94dc16e4a Add Sparkle update framework 2008-09-07 00:21:59 +02:00
Pieter de Bie 06f737df9a Use PBGitRef for other refs 2008-09-06 23:00:41 +02:00
Pieter de Bie 96bd5d826c Update project settings
This sets the version number correctly
2008-08-28 20:35:57 +02:00
Pieter de Bie 3c481e4472 Add a Refresh menu item 2008-08-28 02:07:35 +02:00
Pieter de Bie 1283e308c8 Really move the spacer 2008-08-28 00:35:11 +02:00
Pieter de Bie aa1e156d4a Move branches menu to the left, disable list editing 2008-08-28 00:31:50 +02:00
Ciarán Walsh c1e701a379 Remove the horizontal spacing between the rows in the commit list tableview.
This is to prevent horizontal white lines from displaying in the graphs.
2008-08-27 21:15:23 +01:00
Ciarán Walsh 159924ae9f Add the standard ⌥⌘F shortcut to focus the search field in the toolbar 2008-08-19 08:32:03 +01:00
Ciarán Walsh 2cb8e7ac5a Restore the search field functionality.
Allows searching by subject, author or SHA.
2008-08-19 08:32:02 +01:00
Pieter de Bie 0fccf5a3bb Remove extra buttons
These aren't used for now anyway, and this looks cleaner.
2008-08-19 00:34:01 +02:00
Pieter de Bie 9135163f24 Read the current branch from the repository 2008-08-18 23:06:37 +02:00
Pieter de Bie f786fe2b0b Read branches in a repository
This adds a -readBranches function which allows you to read in all
branches in our repository. It is used in the branch display popup box.
2008-08-18 22:03:41 +02:00
Ciarán Walsh 3773a739b7 Adding a menu item to install the CLI tool. 2008-08-18 18:44:08 +01:00
Pieter de Bie 4c18f592f5 Fix 'commits loaded' label
The value binding of this label was lost after switching to a Document-based
view. This restores it.
2008-08-18 13:23:56 +02:00
Ciarán Walsh 5450d2c700 The tab buttons were connected to the setRawView: action, which meant that all buttons would switch to raw mode. The tab switching is done via a binding to selectedTab. 2008-08-18 12:07:06 +01:00
Ciarán Walsh b85a205698 Completing the document-based app setup.
Multiple repositories can now be opened by using the File → Open… menu option.
Each document is a PBGitRepository with a PBDetailController controlling the window. PBRepositoryDocumentController is the document controller.
When launched, the application will attempt to open a repository with the current directory as its path. If this fails it will display an open panel to allow the user to select one.
2008-08-18 08:58:39 +01:00
Ciarán Walsh 0def8d34d7 Splitting the window and it’s associated controllers into a separate nib; this will allow multiple repository windows to be used.
PBDetailController is the window controller, and now takes ownership of the repository so we can bind to it through File’s Owner in the nib file. Currently the ApplicationController creates a new PBDetailController at startup with the opened repository.
2008-08-18 07:31:39 +01:00
Pieter de Bie ede8892dc9 PBGitRepository: Abstract revision walking to new class PBGitRevList
The revision walking code made the PBGitRepository unclean. Especially if
we want to keep multiple PBGitRepository objects around (e.g. persistent
data store), it needs to be more simple. This neatly extracts the revision
walking code from the repository code.
2008-06-17 19:32:38 +02:00
Pieter de Bie 39797876fe Optimize rev-list parsing
This uses the C fgets() over the weird readLine implementation I found.
It speeds up the rev-parsing significantly: we went from ~4.5 seconds
on the git.git repo to ~0.95 seconds. And that's with the secret new date
parsing!
2008-06-17 15:04:49 +02:00
Pieter de Bie fe8f173360 Add custom cell 2008-06-17 13:46:18 +02:00
Pieter de Bie e72d93c872 Allow dragging of files out of tree view
This uses the promisedfile protocol, which means that dragging to e.g.
FileMerge won't work.
2008-06-17 09:29:52 +02:00
Pieter de Bie e2b507313b Delete temporary files when they are deallocated
This will remove a lot of the stray files in the
temporary dir. However, they won't be deleted on exit
of the program. What to do about this?
2008-06-17 05:56:00 +02:00
Pieter de Bie b18b957190 Allow QuickLook to activate by pressing space
Subclasses NSOutlineView to PBQLOutlineView that takes a controller which
should respond to toggleQuickLook:. This is used for our tree walker to
actually show QuickLook when space is pressed.
2008-06-17 02:55:49 +02:00