Commit Graph

438 Commits

Author SHA1 Message Date
Pieter de Bie d2eafc2d52 Include libgit2 as submodule and use it to store sha's
This reduces GitX's memory usage and makes some operations much faster,
like graphing, by having a cheaper comparison
2008-11-24 22:53:48 +01:00
Pieter de Bie 1a7ad9415f PBGitRevList: Rewrite as C++ code
This produces cleaner code and is also significantly faster
than the old obj-c code: linux-2.6 goes from ~8 seconds
to ~6 seconds.

Using the c++ code allows us to do easy optimizations
2008-11-24 22:32:51 +01:00
Pieter de Bie 3d64d83f98 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
2008-11-24 22:32:46 +01:00
Pieter de Bie cef35ac7ce GitGrapher: Rewrite looping code to C++
This makes the revwalking faster by not creating as many NSObjects as before.
2008-11-24 22:32:42 +01:00
Pieter de Bie bb5696c704 GitGrapher: Limit the maximum number of lanes
This limits the maximum number of lanes to 32, making the
graphing a lot faster. For example, linux-2.6.git takes only
30 seconds now, rather than >400
2008-11-24 21:55:38 +01:00
Kim Does 86ec95f6d6 HistoryView: Add a tooltip for 'Create Branch' button 2008-11-20 15:13:48 +01:00
Kim Does ac0327249d Add icons for the history view and commit view 2008-11-20 15:09:55 +01:00
Pieter de Bie 807eb57280 Increase font size of donate link
This was a bit small in Firefox, but OK in Safari
2008-11-20 02:04:14 +01:00
Pieter de Bie 7cf4a103a8 CommitView: Add an "Open Files" context menu action 2008-11-19 15:12:32 +01:00
Pieter de Bie e76d483180 CommitView: Allow drag and drop to external applications
This allows you to drag a changed file to for example XCode,
so you can edit it.
2008-11-19 15:06:13 +01:00
Pieter de Bie b0caa349ae Revert "Wait for a child to clear it out."
This reverts commit 3922b543ba.

This caused weird drawing glitches when reloading the revision list
2008-11-19 14:54:30 +01:00
Pieter de Bie eb89811264 RevList: Run git in the correct directory
This was a bug introduced when switching to tasks rather than
file handles
2008-11-19 02:31:48 +01:00
Pieter de Bie 32e30ad351 HistoryView: Always show the correct current branch 2008-11-19 02:21:13 +01:00
Pieter de Bie edf4822e34 CLI: Show history view if necessary 2008-11-19 02:21:02 +01:00
Pieter de Bie b2c03bc97b HistoryView: Correctly update branches when changing them
I stupidly used "observe.." instead of register.. so KVC
didn't even work
2008-11-19 02:12:03 +01:00
Pieter de Bie 6038c20d7d HistoryView: Add a "Local Branches" option 2008-11-19 02:10:21 +01:00
Pieter de Bie a62e14ffe7 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
2008-11-19 01:54:14 +01:00
Pieter de Bie 92437c6663 WIP: Use a nicer branches menu 2008-11-19 01:41:27 +01:00
Pieter de Bie 66f3588b77 Merge branch 'master' of git://github.com/bkerley/gitx
* 'master' of git://github.com/bkerley/gitx:
  Use a task (that is properly disposed of) for reading the rev list
  make taskForCommand public so other classes can use it
  Wait for a child to clear it out.
  use outputForCommand instead of handleForCommand to save code, remove zombie-leaking bug
2008-11-19 00:14:10 +01:00
Arjen Laarhoven 17158e888d GitX.xcodeproj: Quote paths in html copy script
When the path to the project contains spaces, the html copy script
fails.  Fix it by properly quoting the `resource_path' variable.
2008-11-19 00:13:30 +01:00
Pieter de Bie 6fcc12d69d CommitView: Allow drag 'n drop of staged / unstaged files 2008-11-18 23:59:25 +01:00
Pieter de Bie 0975426f2f 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.
2008-11-18 23:59:25 +01:00
Pieter de Bie 874737fcb5 CommitView: Allow multiple selection 2008-11-18 23:59:25 +01:00
Pieter de Bie aaca7d6e67 HistoryView: Don't make the tree contents field editable
This would cause some heavy errors because the PBGitTree
class in not KVC compatible for the contents.
2008-11-18 23:59:25 +01:00
Bryce Kerley 8f2cc570f5 Use a task (that is properly disposed of) for reading the rev list 2008-11-17 16:07:30 -05:00
Bryce Kerley 146db09ea4 make taskForCommand public so other classes can use it 2008-11-17 16:07:30 -05:00
Bryce Kerley 3922b543ba Wait for a child to clear it out. 2008-11-17 16:07:30 -05:00
Bryce Kerley d8b926c13d use outputForCommand instead of handleForCommand to save code, remove zombie-leaking bug 2008-11-17 16:07:30 -05:00
Pieter de Bie 2f0dc3bbd5 Site: correct gitx path 2008-11-17 20:19:10 +01:00
Pieter de Bie 6577ee424f Site: Update to 0.5 2008-11-17 15:38:26 +01:00
Pieter de Bie b9d6e41e65 Update Sparke feed (oops) 2008-11-17 15:31:56 +01:00
Pieter de Bie 92c1349217 Update the Sparkle feed to point to frim.nl
This is the new home of the sparkle feed. We keep the old one
for a while so older clients will still update.
2008-11-17 15:24:30 +01:00
Pieter de Bie cea5507d51 Site: update screencasts part
This uses a new fancy inline video display and also shows newly created
screencasts, specifically for GitX v0.5
2008-11-17 15:16:00 +01:00
Pieter de Bie 9f166e61f6 GitX version 0.5 v0.5 2008-11-17 14:08:25 +01:00
Pieter de Bie a950505972 PBRefController: reload items when checking out branch
This will update the view with the new current branch.
2008-11-17 14:03:06 +01:00
Pieter de Bie 82aa6a3232 Autosave divider position
This autosaves the position of the divider in the splitviews
of the commit view and the history view
2008-11-17 13:56:33 +01:00
Pieter de Bie 562ee7c6dd Update ignorefile 2008-11-17 13:54:37 +01:00
Pieter de Bie 8dcb8553ed Fix XIB inconsistencies in naming 2008-11-17 13:54:11 +01:00
Kim Does ca7816b523 Add new icons for "Add Branch" and "Add Label"
The "Add Label"/tag will be used in the future
2008-11-17 13:52:25 +01:00
bkerley f1a6d0663d fix setString-related failures 2008-11-10 13:09:14 -07:00
Pieter de Bie b8e1b6da77 RevList: Optimize revision walking
This is a naive approach at optimizing the revision walking.
2008-11-08 23:22:21 +01:00
Pieter de Bie bcc167be1b CLITool: Change installation path to /usr/local/bin 2008-11-08 23:16:57 +01:00
Pieter de Bie 00e44b35d0 RefController: Allow checking out branches 2008-11-01 23:24:41 +01:00
Pieter de Bie 058fbcff58 RefController: Refactor ref menu to its own class 2008-11-01 23:16:41 +01:00
Pieter de Bie a9dad9dd31 GitRevisionCell: Allow right-clicking on refs
This reuses the code in the RefController to show context menus
when right-clicking on refs.
2008-11-01 22:51:10 +01:00
Pieter de Bie e02ee5231c 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.
2008-11-01 22:51:10 +01:00
Pieter de Bie 8a399c0793 GitCommit: Add a 'removeRef' function
The ref functionality is somewhat weird right now, in that
some parts of the code require a nil array when there are no
refs. So, we add a good removeRef accessor to keep track of this
2008-11-01 22:51:10 +01:00
Pieter de Bie 23c918660c HistoryView: Allow creation of branches 2008-11-01 22:51:10 +01:00
Pieter de Bie 79e5304aa7 WebHistoryView: don't error out when reloading refs
We changed the showRef() prototype to take the current ref, but
didn't change all callers.
2008-11-01 22:51:06 +01:00
Pieter de Bie 304a1a5d03 Remove stray debug messages 2008-11-01 21:14:57 +01:00