Commit Graph

291 Commits

Author SHA1 Message Date
Pieter de Bie ffae6a8564 GitRepository: Add an "all branches" option in branches list
This is probably the most common non-branch GitX option, so
let's add it by default
2008-10-03 19:25:50 +02:00
Pieter de Bie bae7566cde HistoryView: Allow tripple-clicking on header to undo sorting 2008-10-03 19:07:05 +02:00
Pieter de Bie 8c59a1249a CommitView: Also read in new objects with null-separator 2008-10-03 19:06:47 +02:00
Pieter de Bie 36e8f1e5f2 gitx-cli: Add help text 2008-10-03 18:44:18 +02:00
Pieter de Bie a66ae7c1e7 Grapher: Always reset colors at start of graphing 2008-10-03 18:27:12 +02:00
Pieter de Bie 49631753a8 HistoryView: Allow sorting on commit subject
This was broken after binding the subject column
to the commit itself, rather than it's subject.
2008-10-03 18:24:15 +02:00
Pieter de Bie c3f5d517b3 Graphs: use chars to store line number
This reduces memory cost somewhat (10MB on the git.git repository),
while still keeping the same functionality :) Better would be to
use structs in a c array in the cellinfo, as the NSArray and
NSObject type information together now use more memory.
2008-10-03 18:10:43 +02:00
Pieter de Bie a0f248ef9f CommitView: Also show deleted files correctly 2008-10-03 18:06:57 +02:00
Pieter de Bie 7a5716b24d CommitView: Use null-terminated strings when reading the index 2008-10-03 18:06:41 +02:00
Pieter de Bie 7d0aa866ef Merge branch 'pu/cw/toolbar'
* pu/cw/toolbar:
  Move toolbar to view xib
  RepositoryWindow: Prettify view selector
  RepositoryWindow: Move view selector to the left and add a separator
  Adding view-specific toolbars.
2008-10-03 17:20:51 +02:00
Pieter de Bie e2119d011b Merge branch 'pu/pb/nicer_diff'
* pu/pb/nicer_diff:
  DiffView: make diff width 100%
2008-10-03 17:20:47 +02:00
Pieter de Bie e329493154 Move toolbar to view xib 2008-10-03 17:18:26 +02:00
Pieter de Bie 37a812504a DiffView: make diff width 100% 2008-10-03 14:44:18 +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
Christian Jacobsen e25aec668b GitRepository: Skip empty lines when parsing refs
This fixes loading repositories.
2008-10-02 20:46:07 +02:00
Ciarán Walsh e1704729f9 Adding view-specific toolbars. 2008-09-30 23:14:02 +01:00
Pieter de Bie b753ab09e5 CommitView: Don't allow empty commits 2008-09-28 21:25:53 +02:00
Pieter de Bie 4de0a4a4bb Add a file to test diff display on 2008-09-28 20:55:02 +02:00
Pieter de Bie 8c457e9f83 Use an alternative style for the diffs 2008-09-28 20:48:55 +02:00
Pieter de Bie 8835624d29 CommitView: Escape HTML characters with new files 2008-09-28 16:57:50 +02:00
Pieter de Bie 01966d59c7 WindowController: Make sure the subview is the right size before adding it
This fixes a rendering bug when you start in commit view and 
then switch to History view.
2008-09-28 16:14:47 +02:00
Pieter de Bie 1028157cbc Fix memory leaks
This changes a bunch of ivars to __weak's, to avoid reference loops.
Furthermore, in PBGitHistoryController, we need to call [webView close],
otherwise some memory will never be freed?
2008-09-28 16:14:00 +02:00
Pieter de Bie 95c4bcbaba Don't store the windowcontroller in an iVar
There's no need to, as we can just retrieve it from
the WindowControllers array.
2008-09-28 13:31:47 +02:00
Pieter de Bie b255fb39d8 Fix branch reloading
This fixes a regression in 86606ef8, where the branches array was
created anew every time the branches were reloaded, causing you to
lose current branch selection.
2008-09-28 13:10:57 +02:00
Pieter de Bie a2217fe099 Reload commits after doing a commit 2008-09-28 13:03:55 +02:00
Pieter de Bie 1f7d745bb9 RevList: Decorate commits in the same thread
This simplifies matters greatly, and shouldn't be a huge performance
decrease (unless you have > 2 cores, but even then). This also
fixes a bug with the new --early-output, where commits would show
multiple times because they were outputted twice.
2008-09-28 12:14:13 +02:00
Pieter de Bie 4131258108 CommitController: Read index data to EOF
Otherwise not all information may be parsed correctly
2008-09-27 00:32:06 +02:00
Pieter de Bie 709547ac85 Add Commit/History options in View menu 2008-09-26 23:30:52 +02:00
Pieter de Bie 86606ef815 Add a --commit option to the CLI client
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
2008-09-26 23:22:15 +02:00
Pieter de Bie de9f4ddf91 HistoryView: Add copy behaviour in commit list
This copies text like:

	2e7cd5268d (Remember selected view (history or commit))

to the pasteboard on command-c
2008-09-26 18:43:06 +02:00
Pieter de Bie 0a80eb16cb RevList: Use --early-output to get some first hits quickly
This uses the --early-output feature of git logs to
display the first few commits quickly
2008-09-26 02:18:29 +02:00
Pieter de Bie 2f0131af0d RevList: Rewrite parents with path limiting
This appends the --children option to `git log`, so
that parents are correctly rewritten.
2008-09-26 01:59:22 +02:00
Pieter de Bie 0d0a83f381 HistoryView: Reset the sorting after selecting another branch 2008-09-26 00:56:16 +02:00
Pieter de Bie 8c01a2964b HistoryView: Don't show path lines if the list is changed
This avoids drawing path lines if the list is sorted
or if there is a search, which would show the lines incorrectly.
2008-09-26 00:52:33 +02:00
Pieter de Bie ff6cc26181 CommitView: Don't show commit / amend radio buttons
As this function is not yet implemented, just don't show it.
2008-09-26 00:41:57 +02:00
Pieter de Bie b243e86a58 CommitController: Don't show files that are in conflict twice 2008-09-26 00:39:56 +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 188d13f2e3 WebGitController: Add a policy to open links in browser
This was supposed to accompany the "Add gistie" commit, but
somehow I forgot. Without this, links to be opened in new windows
would not function.
2008-09-26 00:23:32 +02:00
Pieter de Bie 0f60b0cc44 HTMLView: Escape commit message from HTML entities 2008-09-26 00:19:30 +02:00
Pieter de Bie 978d7cb2b1 CommitView: Correctly set the default commitmessage font to Monaco 12
This way, wo don't need any text entered to set a font.
2008-09-26 00:11:49 +02:00
Pieter de Bie b005066fb2 CommitView: Make sure controllers are notified on refresh
This makes sure the controllers are notified if we empty the file
array for an index refresh.

I don't know if this is necessary, but it can't hurt.
2008-09-26 00:04:01 +02:00
Pieter de Bie 973d83e35c CommitView: Switch icon colors
It makes more sense to color existing icons green, and 
new icons white.
2008-09-25 23:59:12 +02:00
Pieter de Bie 37cda5faa4 CommitView: Intelligently add files
Rather than rereading our status every time we add something,
calculate where a file should go.
2008-09-25 23:57:48 +02:00
Pieter de Bie 001b6bf10e CommitView: Handle new files better
This fixes the 'cat' command that was acting up and also shows
information when a file could not be displayed
2008-09-25 23:45:14 +02:00
Pieter de Bie d58127e6a2 CommitView: Sort items based on status and then path 2008-09-25 23:37:44 +02:00
Pieter de Bie 08338c5e2d Update ReleaseNotes 2008-09-25 23:31:48 +02:00
Pieter de Bie 0ad81bc2a6 CommitView: Use the status bar to update on status 2008-09-25 23:31:24 +02:00
Pieter de Bie 55b37d903c CommitView: Asynchronously read in the files
This makes the gui more responsive, as it doesn't block while
exec'ing git 3 times.
2008-09-25 23:15:00 +02:00
Pieter de Bie c6966ade41 HistoryView: Add a method to put a commit online 2008-09-25 22:25:46 +02:00