Commit Graph

805 Commits

Author SHA1 Message Date
Morgan Schweers 7eb3616f3f Disable toolbar entries when they are processing, as at least some minimal feedback for the user. I still think it needs a progress bar dialog, or something. 2009-10-26 16:31:35 +01:00
Morgan Schweers 5b0051e13c Rudimentary clone capability from the File menu.
No progress display, so it's UX sucks, but it works.

Need to add a progress display, so the user knows it's not just lost in the weeds.  Either a neutral 'working' progress bar, or (optimally) some cool thing that feeds off the pipe and fills a text display.
2009-10-26 16:31:23 +01:00
André Berg 2b0000ca23 Add menu and toolbar changes from cyberfox 2009-10-26 16:26:52 +01:00
Morgan Schweers b580c03795 DRY up the menu adding code
Add rebase and pull menu items
Get upstream name more git-accurately for upstream operations
2009-10-26 16:16:04 +01:00
Morgan Schweers 4b74a3f92a Disable the push menu item for branches which don't have a remote. 2009-10-26 16:15:50 +01:00
Morgan Schweers cdc4f5208b Add a menu item and an action for pushing a repo up. 2009-10-26 16:15:35 +01:00
Morgan Schweers fa929eb7c9 Use the libgit2 allocfmt method, instead of hacking it by hand. 2009-10-26 15:54:31 +01:00
Morgan Schweers 611687e7c5 Use the newer libgit2 method for extracting a hex digest from an object id. 2009-10-26 15:52:47 +01:00
André Berg a2ebc4a4fd Add stderr to PBEasyPipe output for helpful messages to Console. 2009-10-26 15:34:51 +01:00
André Berg fed2cc4806 Update checkbox buttons to non scaling to get rid of the XIB compiler warnings. 2009-10-24 21:45:04 +02:00
André Berg 75abf03766 Add 10.6 delegate protocols to silence compiler warnings.
The net result is the same as of 10.5 when those were informal categories on NSObject.
2009-10-24 21:44:05 +02:00
André Berg 0df2d3f299 Merge branch 'fqueue' into devel 2009-10-24 20:30:38 +02:00
André Berg 7bf4ed5c38 Bug fix: Change notification to avoid display freezes when the QuickLook panel hides during the repository window's auto refresh. 2009-10-24 20:30:19 +02:00
André Berg 286b727b50 Merge branch 'ab/fqueue_stage' into devel 2009-10-24 11:25:39 +02:00
André Berg c76c922414 Add missing changes for commit 11cc30 from rastersize's fork 2009-10-24 11:23:38 +02:00
André Berg 350be101d3 Merge branch 'ab/fqueue_stage' into devel 2009-10-24 09:04:37 +02:00
André Berg fcbe01b091 Xcode build name again. Just ignore it. 2009-10-24 09:00:34 +02:00
Aron Cedercrantz 11cc30bc36 Add on window selection refresh.
The changes in PBViewController is only there to
supress a compiler warning.
2009-10-24 14:57:06 +08:00
Yoshimasa Niwa 73fcb78cb4 FIX: bug 2009-10-24 14:56:42 +08:00
Yoshimasa Niwa 003977dad9 FIX: memory leak(delete will not be called) and graph glitch
* When we are using subtree merge on git repository,
  GitX may show the slipped graph line.
* Behind this glitch, GitX may leak the PBGitLane object.
2009-10-24 14:56:29 +08:00
Steven Michalske c13474e7a3 Added weeks to the strings of time. 2009-10-24 14:55:54 +08:00
Bernard Leach 93f1ea011b Unescape the filename to ensure that filenames containing '&' are displayed correctly 2009-10-24 14:55:41 +08:00
Steven Michalske 4f7e155ec0 Adding relitive dates to history view
This is not all that sortable as 1 year will sort before 2 minutes.

To fix this the sorter on the table would neet to learn about units of
time.
2009-10-24 14:54:45 +08:00
André Berg e936253d9f Xcode project update. Just a small build name change 2009-10-24 08:42:05 +02:00
André Berg 76298f1f18 Bug fix: the QuickLook panel now really starts its nice morphing animation from the selected row.
Previously it would just start from the top of the file browser outline view
every single time. Not very sexy...
2009-10-21 07:05:03 +02:00
André Berg 0cfc5b1d76 Bug fix: small error in rsync detection between MacPorts and builtin. 2009-10-20 07:48:00 +02:00
André Berg 87df0b1cfc Lower the fade and timeout interval for the context range slider. 2009-10-20 06:30:00 +02:00
André Berg 380973bd9a Bug fix: Various smaller fixes regarding GC, dot notation, etc... 2009-10-20 06:28:23 +02:00
André Berg 75e8a5b9b1 Bug fix: Make QuickLook panel work by using the now public API.
Also implements Finder's fade transitions, handles preview icon creation
through GCD block dispatch and does the right thing regarding events:
Mouse events go to the panel, key events to the fileBrowser outline view.
2009-10-20 04:12:06 +02:00
André Berg dca051c520 Xcode project update: Change base SDK and deployement target to 10.6.
Change default compiler to Clang v1.0 for up to 40% compile and runtime
speed increase.

Improve control over install location through user scripts and config
files.
2009-10-20 04:07:28 +02:00
André Berg 08284e9300 Bug fix: Increase width of Amend text label.
This text label was sometimes cut off half in the last char depending on
system font sizes.
2009-10-20 04:03:05 +02:00
André Berg 6c04aea44b Bug fix: Change improper usage of dot notation.
Calling methods which are not properties through use of dot notation is a
no-no in Apple's Objective-C 2.0 documentation. According to Apple it might
work but the compiler will not warn about any dangerous use cases.

The prominent example from the docs of how not to do it is "someObject.retain".

Here retain is a method and not a property so proper use is "[someObject retain]".
Unfortunately, often it is not clear if something in the API is merely an accessor
or a method which acts like an accessor but does more than the name might imply.

In this case, we can see this in PBEasyPipe where we have method calls like
"NSTask.standardOutput = ...". Even though they may look correct this can be
dangerous for obvious reasons. I assume hat this could also play a role in the appearance
of the "bad file descriptor" messages.
2009-10-20 04:03:05 +02:00
André Berg a7ce2abb06 Bug fix: Context lines slider can now update diff views in real time.
NOTE: Using this feature needs cookies enabled, which may sub-optimal in
corporate controlled environments.

TODO: The dependency on jQuery is overkill for something as simple as
updating tracking mouse-ups on a input element.
2009-10-20 04:03:05 +02:00
Pieter de Bie a256210880 Testing: add missing file 2009-10-02 10:19:14 +02:00
Pieter de Bie 30621f13fc test/index: add more tests 2009-10-01 21:59:19 +02:00
Pieter de Bie a3f02b2902 GitIndex: fix status update when changed file is deleted
Fixes bug LH#209
2009-10-01 21:59:08 +02:00
Pieter de Bie 339026981a Update testing framework 2009-10-01 21:55:40 +02:00
Pieter de Bie 5be8aed2b7 GitIndex: increase refreshStatus before launching task
We used to increase this variable after
handing it over to the [handle readToEndOfFileInBackgroundAndNotify],
but sometimes a task would quit before getting to that point, causing
a premature index refresh event to be called.
2009-10-01 21:17:32 +02:00
Pieter de Bie ce89e0f468 Add first test, in MacRuby 2009-10-01 21:06:20 +02:00
Pieter de Bie f0860b4f9d Add testing framework 2009-10-01 21:06:09 +02:00
Pieter de Bie 1854fc0bd0 Merge branch 'pu/pb/index_refactor'
* pu/pb/index_refactor: (24 commits)
  PBGitIndex: post notifications when index stuff fails
  GitIndexController: reorder methods a bit, remove unnecessary stuff
  PBGitIndex: Migrate discardChanges to the GitIndex
  CommitController: Make commit message editable after commit failed
  GitIndex: Fix a few comments
  GitIndex: explicitly tell when stuff is updated
  Remove cruft
  Show previous commit message when amending
  CommitController: Empty commit title when commit is successful
  CommitView: Remove cruft
  Add failed commit notifications
  GitIndex: add commit notifications
  CommitController: Add status messages for index operations
  GitIndex: Add a few notifications
  CommitView: Migrate patch apply stuff to GitIndex
  GitIndex: Add support for applying patches
  CommitController: Replace commit method with the one from GitIndex
  GitIndex: add basic commit method
  GitIndexController: Migrate stageFiles functions to GitIndex
  GitIndex: Add methods to stage and unstage files
  ...

Conflicts:
	PBGitCommitController.m
	PBGitIndexController.h
	PBGitIndexController.m
2009-09-17 23:47:43 +02:00
Pieter de Bie 1a5a211ddf Merge branch 'stable'
* stable:
  HistoryView: Don't show the 'loading commit' thing until after 500 ms.
  HistoryView: Remove raw view
  HistoryView: don't load in commit information in a separate thread anymore
  Fix UTF-8 bug in NSString_RegEx
  CommitView: Don't keep rearranging when iterating over files
  IndexController: de-privatize the index-stopping stuff
2009-09-17 23:43:34 +02:00
Pieter de Bie 5972bd4f7f HistoryView: Don't show the 'loading commit' thing until after 500 ms.
This was annoying me a lot, so it's in stable :)

Signed-off-by: Pieter de Bie <pdebie@ai.rug.nl>
2009-09-17 23:40:38 +02:00
Pieter de Bie 34394d056b HistoryView: Remove raw view
I don't think anybody has ever used this, so let's just remove it.
2009-09-17 23:32:35 +02:00
Pieter de Bie 0363eea494 HistoryView: don't load in commit information in a separate thread anymore
I've seen this hang or crash a few times, so I hope this works better.
Instead of running a task in a separate thread, we just let it go through
the run loop and catch it when the task is done.

This ruins the second subview in the history view, but I don't think
anybody ever used that, so I'm going to remove it.
2009-09-17 23:29:06 +02:00
Pieter de Bie 2cdf2b60f5 Merge branch 'pu/pb/index_quick_fix' into stable
* pu/pb/index_quick_fix:
  CommitView: Don't keep rearranging when iterating over files
  IndexController: de-privatize the index-stopping stuff
2009-09-14 15:09:03 +02:00
Pieter de Bie 3324591e6c Fix UTF-8 bug in NSString_RegEx
This class would use the location information provided by
regex(3) as range for for a substring. However, the information
regex(3) returns is a byte-based, while NSString works on characters.

This can cause a problem when there are UTF-8 characters in the string,
as the wrong subsstring will be returned.

This is fixed by taking the UTF bytesequence, and extracting a substring
from that, rather than using NSString's own substring method
2009-09-14 13:25:01 +02:00
Pieter de Bie a2b3bf3d1e PBGitIndex: post notifications when index stuff fails
We use notifications so that we can make all these methods async later on
2009-09-13 16:55:40 +02:00
Pieter de Bie 438a3f808d GitIndexController: reorder methods a bit, remove unnecessary stuff 2009-09-13 16:55:40 +02:00
Pieter de Bie 3dc312ff2e PBGitIndex: Migrate discardChanges to the GitIndex 2009-09-13 16:55:40 +02:00