Commit Graph

857 Commits

Author SHA1 Message Date
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
Pieter de Bie 5010511bdb CommitView: Always use a single PBChangedFile object
This makes sure we don't add a double object to our array,
if a file has both cached and unstaged changes.
2008-10-10 21:59:23 +02:00
Christian Jacobsen 63523d00e8 History view: Make lozenge of currently checked out branch (HEAD) bold, same as gitk. 2008-10-10 21:59:22 +02:00
Pieter de Bie 4b27186a83 Update Sparkle Feed for 0.4.1 2008-10-10 21:59:22 +02:00
Pieter de Bie 2b089a79fe GitX v0.4.1 v0.4.1 2008-10-10 21:59:22 +02:00
Pieter de Bie d4f2b4a120 GitCommit: Add a GitX identifier to the patch output
This is a nice way to track patches that appear on the
internets :)
2008-10-10 21:59:22 +02:00
Pieter de Bie 70bc282982 HTML: Improve diff display performance
This improves the diff performance by a factor of around 10. Things done
to do this are, among others:

	* user String.replace(//g) instead of String.gsub(). It's
		*much* faster
	* Don't use anonymous inner functions for iteration, but instead
		use for loops
	* Don't use String.startsWith() if we can just compare a
		single character

Because we are now so much faster, we can also show bigger diffs
by default.
2008-10-10 21:59:22 +02:00
Pieter de Bie 5c69f31b5a HTML: Update test script with a bigger diff
This way we can profile the JS diff code
2008-10-10 21:59:22 +02:00
Pieter de Bie 6589279383 WebController: Move common functions to superclass 2008-10-10 21:59:22 +02:00
Pieter de Bie 69e1c6fc45 CommitView: Don't break on oneliners
e2210f7306e4c1647ff068f660db1674ce0391e1 (CommitView: Add a better reflog entry)
created a bug where an exception was thrown if you enter a one-lined commit
message.
2008-10-10 21:59:22 +02:00
Pieter de Bie 64f1957ec9 Gistie: Create private gists by default
We can make this optional once the PrefPane is in
2008-10-10 21:59:22 +02:00
Pieter de Bie fd146bd44b CommitView: Add a better reflog entry
This adds an entry in the form of

	commit: CommitView: Add a better reflog entry

to the reflog upon commit, rather than

	Commit from GitX

which isn't very informative
2008-10-10 21:59:22 +02:00
Pieter de Bie 40e9726254 WebControllers: Refactor to use common code 2008-10-10 21:59:21 +02:00
Pieter de Bie 19750e15a0 Add ~/bin/git to search paths 2008-10-10 21:59:21 +02:00
Pieter de Bie d66a105a4b CommitView: Allow rootless commits
This fixes the committing of rootless commits by not
requiring a HEAD parent if there isn't one.
2008-10-10 21:59:21 +02:00
Pieter de Bie e418878c1b CommitView: Add command-shift-enter shortcut to commit 2008-10-10 21:59:21 +02:00
Pieter de Bie 55da6d5bbc HistoryView: Show whitespace in commit message 2008-10-10 21:59:21 +02:00