Commit Graph

501 Commits

Author SHA1 Message Date
Johannes Gilger ed08bf64bd diffHighlighter.js: Off-by-one for last file in diff, resulting in wrong href 2009-01-19 17:00:59 +00:00
Ben Alpert 086a1c3a12 remove double path init in drawCircleInRect: 2009-01-19 16:57:12 +00:00
Rick Berry 40cceebc9b Fix file path construction when using NSString 2009-01-19 16:55:43 +00:00
Ben Walding feb0b64f29 Fix spelling of successfully in
* commit message
 * documentation
2009-01-19 16:54:56 +00:00
Daniel Lundqvist 47fa714714 Properly handle deselection in file lists. 2009-01-19 16:52:32 +00:00
Daniel Lundqvist 5d4a8c7a66 Improve margins now that we can toggle things in rightcontent div. 2009-01-19 16:50:52 +00:00
Daniel Lundqvist 31d2e1ad41 Have history view react to configuration changes. 2009-01-19 16:50:52 +00:00
Daniel Lundqvist 865ae5f422 Have PBWebController react to configuration changes.
Override preferencesChanged in subclasses to actually react to changes.
Base class does nothing by default.
2009-01-19 16:50:52 +00:00
Daniel Lundqvist 55d57ba076 Add panel for integration settings. 2009-01-19 16:48:41 +00:00
Daniel Lundqvist 0f8ac90743 WebHistoryController: Only show Gravatar and Gist if they are enabled
This add an "enableFeature" JS function that checks if a given feature is
enabled. If it is, the correct div is shown, otherwise it is hidden.
2009-01-19 16:48:26 +00:00
Daniel Lundqvist eb971b3ca7 Add settings reader for Gist and Gravatar integration. 2009-01-19 16:41:09 +00:00
Daniel Lundqvist 0724dc8eaa Set Controller earlier so it can be used while loading pages. 2009-01-19 16:38:07 +00:00
Daniel Lundqvist 09cc80522d Use the passed in image element in setGravatar. 2009-01-19 16:38:07 +00:00
Daniel Lundqvist 8ef733518e Add id to "Gist it" button so we can refer to it from JS. 2009-01-19 16:38:07 +00:00
Pieter de Bie 23f1672831 PrefencesWindow: Add a reset icon to the path view
This allows you to remove a custom executable
2009-01-19 16:38:07 +00:00
Pieter de Bie 5a8ddeb096 GitBinary: Show an error if someone entered an invalid git binary 2009-01-19 16:38:07 +00:00
Christian Jacobsen 0f09401aa6 Add a preferences window
This adds a preference window with default preferences to change the
sparkle options and to set a custom path to a git binary.
2009-01-19 16:38:02 +00:00
Pieter de Bie 85fa5a1d8f GitCommit: Restore revert functionality
This restores the "Revert Changes.." functionality
that was removed when changing the file list stuff.

It's now possible to revert multiple files. Also, it
now uses 'git checkout-index', which should be a bit
more robust.
2008-12-22 22:22:10 +01:00
Pieter de Bie d0c5db47ea Merge branch 'pu/mb/add_gitignore'
* pu/mb/add_gitignore:
  CommitView: Add option to add files to .gitignore
2008-12-22 21:59:45 +01:00
Mark Bestley fc00f6c087 CommitView: Add option to add files to .gitignore
In the commit view, add an option in the context menu to have git
ignore them by adding the file names to .gitignore file in the root
of the workarea.
2008-12-22 21:59:11 +01:00
Pieter de Bie 8d729dae4c CommitView: Don't change selection when refreshing
We used to read in a completely new array when refreshing
the index. The problem with this is that the selection
changes when reading in the new array. We avoid this
by changing the current array, rather than loading in
a completely new one.
2008-12-22 21:31:05 +01:00
Pieter de Bie cd4ee1b993 Update views when switching 2008-12-22 20:47:36 +01:00
Pieter de Bie da89f38546 HistoryView: Accept an empty email address 2008-12-22 20:40:17 +01:00
Pieter de Bie 641d2dbdce GitGrapher: Reduce number of lines we output
We used to output a line for every lane after the
lane in which the current commit is in, and also
make it have the wrong color. This fixes the buglet
and also makes sure not to draw a line when
the commit has no parents.
2008-12-22 20:11:57 +01:00
Kevin Ballard 83fff61b6a Always build in the project-relative build/ folder with rake build_app 2008-12-15 18:05:24 +01:00
Pieter de Bie 530377a121 PBEasyPipe: Fall back to ASCII encoding when UTF-8 fails
This seems to be the only sensible thing to do, as we can't guess
what the encoding would otherwise be.
2008-12-15 18:00:34 +01:00
Pieter de Bie 56a6adc234 GitGrapher: Do not crash on only a single commit
This was somewhat unfortunate, as we don't check
on if we have at least a single parent when adding
new parents. That would cause a wild pointer, or null
dereference when creating a new lane.
2008-12-15 17:33:50 +01:00
Pieter de Bie cbf2608dfa Site: Fix display of the User Manual
This was accidentally broken when 578edf879
changed the 'body' variable to be global.
2008-12-04 20:56:15 +01:00
Kim Does 0434062a7e DiffView: Make the lines and shadows more subtle 2008-12-02 01:00:18 +01:00
Pieter de Bie d977d90b2c Diffs: overflow the text 2008-12-02 01:00:18 +01:00
Pieter de Bie e0d8df63e8 IndexController: Don't try to be smart when diffing staged changes
We previously used some cool git syntax to display changes in the index.
The unfortunate side-effect of this was that the diff headers weren't correct,
so the unstage button didn't work anymore.
2008-12-02 01:00:18 +01:00
Martin Svangren 41154efa15 Rakefile: Fixed broken copy in install_app
Seems like File.copy doesn't do directories (as source, that is),
only files (as far as I can tell from reading the docs and trying
it in irb, punch me if I'm wrong). It only creates a zero byte file
in the target directory on my system.

Replaced File.copy with a system call to 'cp -R ...' to do the job.
Seems like FileUtils could have done it just as well (with cp_r),
but I figured making a system call was better than introducing a
new dependency.
2008-12-02 00:04:40 +01:00
Pieter de Bie 0852f6326c DiffHighlighter: Don't display a diff if there's nothing to display 2008-12-01 15:57:21 +01:00
Pieter de Bie 415ee91b50 WebHistoryView: Add a link to display changed images 2008-12-01 15:57:21 +01:00
Pieter de Bie 359346a2d3 DiffHighlighter: Add a binary file callback
This allows a caller to return custom code when
a file is marked as binary, such as the option
to display the file
2008-12-01 15:57:18 +01:00
Pieter de Bie 7a3166c0e6 WebHistoryView: Use diff callbacks to display history list
This is the start of a callback system we can use to 
make the diff more interactive
2008-12-01 15:09:48 +01:00
Travis Cline 61994be15e reset SDKROOT paths to allow building 2008-12-01 14:28:57 +01:00
Pieter de Bie 4591557e9b WebHistoryView: Fix displaying of parents
This was broken once with the shift away from Prototype,
and even further when using libgit2.
2008-12-01 14:26:42 +01:00
Mark Bestley 35f20cddd5 GitRefController: Fix moving and updating branches
This was also broken with the libgit2 move
2008-12-01 13:59:29 +01:00
Pieter de Bie afcd0b4bc6 GitRevSpecifier: Add NSCoder protocol
This way, the RevSpecs can be loaded from a menu,
so we can use them in the toolbar customization
2008-12-01 13:51:35 +01:00
Pieter de Bie 4dd7a46b86 Allow Toolbar customization
This allows both toolbars to be customized.
2008-12-01 13:50:51 +01:00
Pieter de Bie 578edf879e Site: Add a page title in the header 2008-12-01 13:19:23 +01:00
Pieter de Bie 0b65b54f7f Add a warning about possible error 2008-12-01 13:07:06 +01:00
Pieter de Bie ea0b28d52c Fix copying of commits
This was broken after using libgit2's sha's objects, as we now need to use
realSha
2008-12-01 13:06:08 +01:00
Pieter de Bie 23bb1658d9 WIP: Prettify the diff display by using rounded corners
This wraps each changed file in its own rounded box, making
the diff display easier to the eye :)
2008-11-26 17:44:49 +01:00
Pieter de Bie 07554fbd1f Add toggle function 2008-11-26 17:44:48 +01:00
Pieter de Bie 0a2ddc36f7 GitWindowController: Store multiple views
This keeps the subviews in memory, which means that switching views will
be faster if a view has already been opened. This also allows you to type
a commit message, switch to the history view, and then switch back to
continue typing.
2008-11-26 17:44:25 +01:00
Pieter de Bie 3dd6385440 Fix memory leaks 2008-11-26 17:44:24 +01:00
Pieter de Bie 2bab86cf32 GitCommit: Fix patch generation
This was broken when converting to libgit2's sha's.
We need to use the stringSha, rather than the raw object.
2008-11-26 17:44:24 +01:00
Pieter de Bie 777f70f24f Remove leftover comment 2008-11-25 18:12:26 +01:00