Commit Graph

386 Commits

Author SHA1 Message Date
Pieter de Bie e232181fae Add a GitX:// protocol handler
This allows to read in arbitrary blobs from the repository.
For more information, see the CallingFromWebKit.txt
document in the Documentation/ directory.
2008-11-01 19:06:05 +01:00
Pieter de Bie b7645ec967 PBWebHistoryController: show the commit diff async
This should make the GUI more responsive by allowing the diff
to be read in the background. This assumes that

[PBGitCommit details] is threadsafe, so we should keep it that
way.
2008-10-31 23:45:39 +01:00
Pieter de Bie db39ff7f92 PBWebController: Add a script accessor
This allows easy access to the window's script object
2008-10-31 23:44:28 +01:00
Pieter de Bie 0a40f876d1 PBWebController: Add asynchronous functions
This allows us to keep the UI responsive while
running expensive commands
2008-10-31 23:44:28 +01:00
Pieter de Bie 38a49e251e ReleaseNotes: Update up to 0.5 2008-10-31 23:44:28 +01:00
Pieter de Bie 77ad37a76a History/CommitView: Use a nice-looking splitview divider
This uses images based on those in Mail.app to create a nice
looking splitview (Hush, don't tell Apple!)
2008-10-31 23:44:24 +01:00
Pieter de Bie 1d19bd64df PBChangedFile: Don't use cat to read file contents
This changes PBChangedFile to read in files by using
NSString's stringWithContentsOfFile: method.

It still uses the UTF8 encoding scheme so that we
can capture binary files. This should perhaps be loosened to
also allow other encodings.
2008-10-29 00:49:47 +01:00
Pieter de Bie 41a906d715 PBGitRepository: Don't return a ref if we error out
This fixes the -parseReference: method to return nil if
there is an error in the git call. This also simplifies
our commit controller.
2008-10-29 00:24:10 +01:00
Pieter de Bie 9382cbf266 Merge commit '9e2618c3ea0e0517e156c3e04b9dba356311f361'
* commit '9e2618c3ea0e0517e156c3e04b9dba356311f361':
  Reorder project
  CommitView: Allow committing per hunk
2008-10-28 23:08:13 +01:00
Pieter de Bie d491f3b3ae CommitWebView: Display new files
This was broken when refactoring the commit code
2008-10-27 17:42:36 +01:00
Pieter de Bie 19f4d94ec6 Add a Complete SHA service
This adds a service bound to ⌘⇧7 that expands
any ref to its abbreviated SHA and its subject
line, much like ⌘C in the commit list does.
2008-10-27 17:40:46 +01:00
Kim Does 593606fa22 Site: Fix anchors in seeit page 2008-10-23 22:57:29 +02:00
Pieter de Bie 9e2618c3ea Reorder project 2008-10-21 23:31:56 +02:00
Pieter de Bie b252de1a76 CommitView: Allow committing per hunk 2008-10-21 23:31:45 +02:00
Pieter de Bie b1e3dd2212 WebCommitView: Use a notification to display errors
This should give GitX some more consistency. Also, it will
give us a basis to build further changes on.
2008-10-21 22:48:50 +02:00
Pieter de Bie bd097b0eff HTML: Restructure html folder
This changes the HTML part of GitX to be more consistent -- we
now use a "views" directory where every web view has it's own
directory.

Furthermore, GitX-wide Javascript is added in the "lib" directory.
The same is true for CSS in the "css" directory. Every view can
have its own custom CSS and JS, and those are put in the views
directory (without JS or CSS prefix directories).
2008-10-21 22:48:47 +02:00
Pieter de Bie 4363ad159a Clean up project
There were some leftover file entries, so let's
remove them.
2008-10-21 22:25:29 +02:00
Pieter de Bie 1c7fa93074 WebCommitView: Fix Gistie code
After removing the prototype code, the Gistie XMLHTTPRequest would send
the complete request in the URI, which was often too lang and cause a
failure.

This only sends the request in the body, and also adds additional
diagnostics.
2008-10-21 22:25:29 +02:00
Pieter de Bie 9b86f61991 Build fix 2008-10-21 17:44:21 +02:00
Pieter de Bie b82faa56af Merge branch 'pu/pb/diff_window'
* pu/pb/diff_window:
  Add a diff window
2008-10-21 17:31:31 +02:00
Pieter de Bie 36c550f8cd Merge branch 'pu/pb/remove_prototype'
* pu/pb/remove_prototype:
  HTMLviews: various cleanups
  WebHistoryView: Don't use Prototype
  WebDiffView: Don't use prototype anymore
  WebController: Display JS errors
2008-10-21 16:52:55 +02:00
Pieter de Bie 23b5cb2d7b Update Rakefile with upload task 2008-10-21 16:18:30 +02:00
Pieter de Bie d41f546620 Project: Move CommitList to 'git' folder
This is in accordance with the recent tendency to move all objects
related to a view in that folder (rather than only objects that have an
actual meaning in the Git context)
2008-10-21 15:45:40 +02:00
Pieter de Bie 49a708b446 PBGraphCellInfo: Remove stray data members 2008-10-21 15:44:57 +02:00
Pieter de Bie e8131c3898 Add a diff window
This allows you to do something like

	gitx --diff

to display a diff similar to 'git diff', but with GitX prettification.

It accepts all git diff parameters, so you can do something like

	gitx --diff HEAD~10

to show the diff compared to the last 10 commits. Or, you can something like

	git diff | gitx

to pipe anything that produces a diff to GitX
2008-10-21 15:43:26 +02:00
Pieter de Bie e054a17a0c Update releasenotes 2008-10-21 15:38:20 +02:00
Stephen Celis 66f490ff17 HTMLviews: various cleanups 2008-10-21 15:27:47 +02:00
Stephen Celis 43bb12317c WebHistoryView: Don't use Prototype
This removes all dependencies on Prototype in GitX, so we can remove
the library
2008-10-21 15:27:39 +02:00
Pieter de Bie 7b36ac1a2e WebDiffView: Don't use prototype anymore
This is the first step to removing Prototype from GitX.
2008-10-21 15:24:37 +02:00
Pieter de Bie 5cb4105998 WebController: Display JS errors
This actually displays error messages, rather than
notifying that there is an error
2008-10-21 15:24:34 +02:00
Jeff Mesnil fc63af0709 CommitView: Add a vertical line to the commit message
Since Git recommends to use 50 characters in the first line of a commit
message, this adds a vertical line to the commit message view to show where
the 50 char limit is.

[PB: This preference can be changed using a user default -- for now we don't
have a preference pane yet, so this is hidden.]
2008-10-21 14:56:43 +02:00
Pieter de Bie a8d298218b CommitView: Don't always display a horizontal scrollbar
This is based on work from Ben Alpert.
2008-10-19 15:34:28 +02:00
Pieter de Bie 2c09405b82 UserManual: Remove leftover files
We don't need these files anymore, as we can just use the stylesheets
from the main site.
2008-10-19 14:19:15 +02:00
Pieter de Bie 8efc2b0a8c Merge branch 'pu/pb/fix_toolbar'
* pu/pb/fix_toolbar:
  PBGitRepositoryWindow: keep toolbar DisplayMode when switching views
2008-10-19 14:14:42 +02:00
Rufus Cable b64c1deb0e Add half a pixel to history lines so the segments always join up 2008-10-19 14:11:34 +02:00
Pieter de Bie 127ef353c0 Merge branch 'pu/js/gravatar'
* pu/js/gravatar:
  HistoryView: Only show Gravatar if connected to the net
  WebController: Add a message to check whether a site is reachable
  HistoryView: Make the history view prettier
  Added gravatar icons to commit.html (defaults to "wavatar" icons)
2008-10-19 14:08:07 +02:00
Pieter de Bie 2550d19130 HistoryView: Only show Gravatar if connected to the net
This invokes the SCNetwork framework to check if we can connect to a site
without problems. If we can't, we don't even try to show the gravatar.
2008-10-19 14:05:14 +02:00
Pieter de Bie 99b6afd37a WebController: Add a message to check whether a site is reachable 2008-10-19 14:05:14 +02:00
Kim Does e75b2fe82f HistoryView: Make the history view prettier
The following things have changed:
* Moved the gravatar icon to the right
* Do not load default image for gravatar to speed up loading of history view
* Changed the notifier
** New spinner
** New location
** Colour coded for success / failure
* Fonts changed
* New button replacing "paste" --> "Gistie it"
2008-10-19 14:05:14 +02:00
Jeremy Sanderson 0e46f27ad0 Added gravatar icons to commit.html (defaults to "wavatar" icons) 2008-10-19 14:05:10 +02:00
Pieter de Bie ff2601581c Site: Add Google Analytics tracker 2008-10-17 22:59:40 +02:00
Kim Does e0c1507408 Site: fix links in code context 2008-10-17 22:53:40 +02:00
Pieter de Bie 776c7a8f9c Update site information
This updates the site with more accurate information on how to contribute
and where to find screenshots
2008-10-17 22:53:09 +02:00
Kim Does 123432be62 Update the site a bit
This adds correct styles for the User Manual and adds a download link to the
front page.
2008-10-17 22:52:11 +02:00
Pieter de Bie 94db856f53 Update User Manual to use new site
This updates the Rakefile to import the User Manual and also
updates the manual itself to use correct headers.
2008-10-17 22:51:36 +02:00
Pieter de Bie 8738a4e724 Move the UserManual to the new site
This makes sense, as it'll only be hosted there from now on.
2008-10-17 22:50:43 +02:00
Kim Does 80b2a38261 Add a new site for GitX 2008-10-17 22:50:21 +02:00
Pieter de Bie 5cb842ca6b PBGitRepositoryWindow: keep toolbar DisplayMode when switching views 2008-10-16 14:58:28 +02:00
Pieter de Bie 85c942f530 Merge branch 'pu/pb/git_config'
* pu/pb/git_config:
  CommitView/Gistie: Use github.user and github.login
  Add a way to retrieve values from .git/config files
2008-10-14 16:45:45 +02:00
Pieter de Bie 87cf92ae96 Merge branch 'pu/pb/git_version'
* pu/pb/git_version:
  cli-tool: Hint at another error if there is a git binary
  Move CLI files to cli group
  GitBinary: Add git version information
  gitx-cli: add a --version option
2008-10-14 16:45:31 +02:00