Commit Graph

855 Commits

Author SHA1 Message Date
André Berg 06d3b9bcc5 Bug fix: Re-enable the toolbar item validation.
Although it is true that the remote can be chosen arbitrarily through the popup menus
we still need to have a specific local branch. All branches is not a specific branch.
Of course we could do away with determining the current local branch through what's 
selected in the branch popup menu and instead focus on what the appropriate controller's
current selection is.
2009-11-10 18:35:00 +01:00
André Berg d4a8bc9e3c Update and homogenize tooltips of the toolbar items to better explain what will happen. 2009-11-10 18:31:35 +01:00
André Berg 536372499b Bug fix: Pull button now really has the correct image (not the Push button one). 2009-11-10 18:18:09 +01:00
André Berg ff550e85f1 More cleanup and feature adding for the Push, Pull and Rebase popup button toolbar items.
- Complete the action methods for fetch and rebase. 
- Add a more generic and re-usable method for updating the popup toolbar items.
- Comment out updatePushMenuWithRemotes: and updatePullMenuWithRemotes: as those have been 
  superseded by updatePopUpToolbarItemMenu:remotes:action:title:
2009-11-10 12:41:02 +01:00
André Berg 2558fef298 Comment the toolbar item toggle method out since we no longer need to disable Push, Pull or Rebase. 2009-11-10 12:35:22 +01:00
André Berg 9c4949e361 Add disclosure triangles to the template images for Push, Pull, Rebase to indicate that these are popup buttons. 2009-11-10 12:30:38 +01:00
André Berg 8520abd68c Polish sheets and dialogs (struts, autosizing, min/max size etc.). 2009-11-09 06:18:00 +01:00
André Berg 666d1354b2 Add template PNG for the "Add Remote" button. 2009-11-09 06:17:18 +01:00
brotherbard a26bca8845 Add drop down menus to the push and pull toolbar items.
TODO: need small disclosure triangles in the bottom right corner of the icons.
2009-11-08 20:34:34 -07:00
brotherbard 0be790dad4 merge andreberg/master 2009-11-08 18:19:41 -07:00
André Berg 37dcdf2c11 Adjust split view height of the commit webview. 2009-11-09 00:03:21 +01:00
brotherbard 6740c68027 Fix the tooltip for the Add Remote toolbar item. 2009-11-08 15:54:03 -07:00
brotherbard d365bd44f5 Add a "Create Tag" button to the toolbar.
TODO: a custom icon
2009-11-08 15:51:56 -07:00
brotherbard c52aedfcf2 Add an "Add Remote" button to the toolbar that adds and fetches a remote.
TODO: a custom icon
2009-11-08 10:06:37 -07:00
André Berg 12f26bc36f Update height for split view partials.
Update toolbar item sizes to work against the visual inconsistency where the items 
where off by 1 pixel causing toolbar jumps between history and commit view.
2009-11-08 16:33:38 +01:00
André Berg 2c6fd97b5c Cosmetic: Move showMessageSheet convenience method to the proper pragma mark section. 2009-11-08 16:30:18 +01:00
André Berg 1ade0f0620 Remove completely wrong TODO comment.
A deletion execution dialog should block the UI until it's complete if there could
potentionally be state change occurring which has different outcome for pre-deletion
or post-deletion finite state.

A middle ground solution would be to use a modal sheet attached to a specific document
which then only blocks this particular document.
2009-11-08 16:28:50 +01:00
André Berg 1a7b4cb4c7 Update branch menu after deletion of a branch. 2009-11-08 16:26:07 +01:00
André Berg 4cdf6348ca Replace pre-10.6 workaround with public - [NSSavePanel setShowsHiddenFiles:] method. 2009-11-08 16:24:04 +01:00
André Berg 22ba33f575 Disable/re-enable Push, Pull and Rebase buttons depending on selected branch validity.
If "All branches" or "Local branches" is selected, the buttons will be disabled. 
Actions from the context menu continue to work as they implicitly set the target branch
through the identity of the clicked label patch.
Any other branch will re-enable the buttons.
2009-11-08 16:22:53 +01:00
André Berg b6d6e0d5c2 Bug fix: Correct dot notation misuse.
As some Apple employees continue to advocate: Using dot notation for anything else than
documented (!) synthesized properties and calling non-behavioural messages can be dangerous.
Methods that look like setters/getters but aren't connected to a documented property may
introduce private state change inside the class which can further bring all sorts of subtle
and hard to debug problems. The Objective-C 2.0 Language Guide now also mentions this.
2009-11-08 16:20:08 +01:00
brotherbard 5e126433f6 Bug fix: Move updating the current branch to the checkoutRef method.
Stops the branch from being updated back to the current branch when the Refresh Automatically preference is on.
2009-11-07 23:22:20 -07:00
brotherbard 0377181bbf Disable the Checkout menu item when the branch is the current branch. 2009-11-07 22:31:14 -07:00
brotherbard 2b459944a2 Update the current branch when changes are made (like checking out a branch). 2009-11-07 22:29:40 -07:00
brotherbard f97cfbbf18 Add name of branch/remote to Checkout and Delete contextual menu items. 2009-11-07 21:50:01 -07:00
brotherbard d8f27db9f1 Fix finding the correct contextual menu when Subject is not the first column in the git history table. 2009-11-07 21:04:29 -07:00
brotherbard 9e72dba3e3 PBRefController: Switch the app modal Delete Remote panel to a window modal sheet. 2009-11-07 19:47:38 -07:00
André Berg 1551084b16 Update context menu to include remote target and other dynamic title changes.
When right-clicking on a ref label, if the ref has a default remote configured , 
a new greyed out menu entry with the remote's name is put above all other menu
entries and separated by a menu item separator.
2009-11-07 04:25:12 +01:00
André Berg f1fcb18a92 Improve error and tooltip descriptions. 2009-11-07 04:20:24 +01:00
André Berg 4c4203a7ce Update PBGitErrors to include some error messages dealing with missing remote tracking branches.
This is especially useful for the new button functionality.
2009-11-07 01:02:22 +01:00
André Berg d04c639730 Update tooltips for Push, Pull and Rebase buttons to better reflect what will happen. 2009-11-07 01:00:39 +01:00
André Berg 2cc3c730d6 Filter debug log output by getenv adressable Xcode environment vars. 2009-11-04 19:39:50 +01:00
André Berg 0f50cd6673 Bug fix: reconnect the search field predicates so the field works again. 2009-11-04 19:39:05 +01:00
André Berg 93a027cccd Bug fix: Make new buttons actually work.
Mind you, these buttons cannot operate on the clicked branch like the context menu. 
Instead they always operate on the currently active branch (or its default remote).
2009-11-03 04:38:30 +01:00
André Berg 421d6fd9ed Bug fix: Wrong usage of dot notation. 2009-11-03 04:37:03 +01:00
André Berg b76f7551ac Safety measure: Replace unneeded stringWithFormat with stringWithString because the format string is the content string. 2009-11-01 00:51:13 +01:00
André Berg 7892ac4612 Update toolbars to incorporate the new buttons.
Update inherent height of branch popup button to the max height to get rid of the 1px movement between view change.
Remove another unused localization.
2009-11-01 00:46:31 +01:00
André Berg 4396081c07 Add new PNG templates for Pull, Push, Rebase and Clone. 2009-11-01 00:39:57 +01:00
André Berg 0d42c592cf Override openDocumentWithContentsOfURL:... to provide sanity checks for the case when a recent items entry no longer has a git repo associated with it. GitX fails gracefully and displays a recovery suggestion. 2009-11-01 00:38:41 +01:00
André Berg 7c1b9d9961 Add pullButton: IBAction. 2009-11-01 00:29:07 +01:00
André Berg d5688dbfaf Exert other options before falling back to PBGitRepository's global state. 2009-11-01 00:26:44 +01:00
André Berg 1fed883b98 Loading message restricted to DEBUG_BUILD. 2009-11-01 00:25:34 +01:00
André Berg 2a6f59b652 Synthesize repositoryPath for external access. 2009-11-01 00:23:33 +01:00
André Berg 5be745177c Add sanity check to PBEasyPipe that checks if a working dir really is a folder. 2009-11-01 00:19:25 +01:00
André Berg fb0fbff6d2 Combine scatterred error domains and codes into one central file. 2009-11-01 00:18:38 +01:00
André Berg 7d19e1c162 Disable 'Save' menu item if no document is open. 2009-11-01 00:15:39 +01:00
André Berg d4a7df12a3 Remove superfluous resources and underutilized localizations. 2009-11-01 00:09:34 +01:00
André Berg e80bcefa60 Update menu entry title to better match rest: 'Detailed View' -> 'Detail View'. 2009-10-26 23:43:07 +01:00
André Berg b7ec771771 Add alternative icons for Rebase, Push and Pull. 2009-10-26 23:39:55 +01:00
Morgan Schweers 3c113a3dd0 Update the submodule to point to the actual libgit2 repository. 2009-10-26 16:33:59 +01:00