Commit Graph

373 Commits

Author SHA1 Message Date
Kim Does 593606fa22 Site: Fix anchors in seeit page 2008-10-23 22:57:29 +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
Pieter de Bie 59e3a181ed cli-tool: Hint at another error if there is a git binary
This will show something like

	Vienna:~ pieter$ gitx
	Error opening repository at /Users/pieter: Could not create document. Perhaps this isn't a git repository?

if you try to open GitX in a directory that isn't supported.
That should be more helpful than the suggestion that GitX can't
find a binary.
2008-10-14 16:35:31 +02:00
Pieter de Bie 7c28f56f77 Move CLI files to cli group 2008-10-14 16:28:57 +02:00
Pieter de Bie 3ba009dcde GitBinary: Add git version information
This makes sure that any git binary found will actually be
version 1.5.4 or higher.
2008-10-14 16:27:50 +02:00
Pieter de Bie 6316b99d0d gitx-cli: add a --version option
This displays GitX version information, handy for debugging. Also shows
where GitX will find a git binary.
2008-10-14 15:51:39 +02:00
Pieter de Bie 406125eee2 GitRepository: Cache HEAD ref
Since 63523d00e8 (History view:
Make lozenge of currently checked out branch (HEAD) bold, same as gitk.),
-[PBGitRepository headRef] was called every time a cell needed redrawing.

This made GitX slow overall, but especially when resizing the window.

So, it's better to cache the value. We'll still reload it with an
explicit refresh though.
2008-10-14 01:38:17 +02:00
Pieter de Bie b4bcc58b3e CommitView/Gistie: Use github.user and github.login
This changes the Gistie paste code to use the github.user
and github.login git config variables for a token and login
name.
2008-10-14 01:02:27 +02:00
Pieter de Bie afb3d45656 Add a way to retrieve values from .git/config files
This introduces the PBGitConfig class. It is KVC compliant as far
as I can see, in that you can actually bind to it in IB and use
ValueForKeyPath to retrieve values. It currently only handles
strings; it should be possible to add functions to process
booleans and numbers to it.
2008-10-14 01:02:27 +02:00
Jeff Mesnil b8161654c5 HistoryView: Add tooltips for subviews 2008-10-13 17:45:34 +02:00
Pieter de Bie 20fc22d4b8 WebController: Fix log bug
The log message wasn't escaped previously,
which would mean that %@ code etc would be
parsed, and fail.
2008-10-10 22:47:47 +02:00
Pieter de Bie 4f212f04b5 CommitView: Remove checking if same file is displayed
This causes trouble if a file was partially staged,
or if we switch from the staged changes to the
unstaged changes.

It should be quick enough not to matter anyway, so
let's simplify things and remove the check.
2008-10-10 21:59:23 +02:00
Pieter de Bie fe38069e39 HTML: Move tab replacement to start of diffhighlight
This might improve performance, as we don't have to match
again every line.
2008-10-10 21:59:23 +02:00
Pieter de Bie 472d36c7f9 CommitView: Add context menu to revert changes 2008-10-10 21:59:23 +02:00
Pieter de Bie e659e63fc0 CommitView: Add option to amend commits 2008-10-10 21:59:23 +02:00