Commit Graph

29 Commits

Author SHA1 Message Date
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 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
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 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
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 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 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 55da6d5bbc HistoryView: Show whitespace in commit message 2008-10-10 21:59:21 +02:00
Pieter de Bie 0f60b0cc44 HTMLView: Escape commit message from HTML entities 2008-09-26 00:19:30 +02:00
Pieter de Bie c6966ade41 HistoryView: Add a method to put a commit online 2008-09-25 22:25:46 +02:00
Pieter de Bie 1472487f00 html/commit.js: Show E-mail addresses again.
This was broken in 62f6463ec4
2008-09-22 11:35:48 +02:00
Pieter de Bie 887cf21bf7 Also reload refs in the webview 2008-09-19 19:41:47 +02:00
Pieter de Bie 58f0a383b2 Show refs in HTML view 2008-09-19 13:56:46 +02:00
Pieter de Bie 978a22c5a5 Add 'v' as a shortcut to show large diffs 2008-09-12 22:17:31 +02:00
Ciarán Walsh 62f6463ec4 Suppress useless svn repository ID e-mail addresses.
When there is no e-mail address available git-svn will substitute the loginname@svn-repository-ID, but this is confusing and useless to have linked/display.
2008-08-27 13:12:19 +02:00
Jean-Paul van Oosten e95cef4248 Renamed the "doetHet" function to loadCommit 2008-06-18 22:49:00 +02:00
Jean-Paul van Oosten edc3ceadac WebView now scrolls to the top on update
Just added a call to the scroll-function in commit.js.
2008-06-18 22:49:00 +02:00
Pieter de Bie 447a8dc48c PBGitRepository: Also request parents when doing our revwalk
This is necessary for cool graph displaying, to be made.
2008-06-17 19:18:40 +02:00
Pieter de Bie 7555b1fa04 PBWebGit: Fix display of commit message when there is no diff
This happens for example in conflictless merge commits.
2008-06-17 16:59:22 +02:00
Pieter de Bie b8b92e6aaf PBWebGit: escape diff before inserting it into to the view
We used to escape a diff only after it was formatted. This would cause
some elements to hang the interface (like an iFrame)
2008-06-17 15:58:17 +02:00
Pieter de Bie 0fa37ba024 Only show commits if they are of reasonable size
This shows a link people should click if they want to display a huge diff
(more than 10k lines). This speeds up the browsing a lot :)
2008-06-16 03:27:52 +02:00
Pieter de Bie 6ba944b2ac Implement a DetailsController
This controller makes sure that only the current view
receives its notifications. Therefore we won't do any work that we don't
see, like parsing diffs or asking for trees. This makes everything quicker.
2008-06-16 03:13:08 +02:00
Pieter de Bie 3432e514b8 Show nicely formatted diff
This steals the idea and markup from Gitnub. Thanks! :)
2008-06-15 18:22:00 +02:00
Pieter de Bie f4a81e217c Make the link to previous parents work 2008-06-15 16:46:31 +02:00
Pieter de Bie 2d1324479e Allower a bigger diff before not displaying it 2008-06-14 21:47:20 +02:00
Pieter de Bie 1ef4fe8a6b Only display a diff when it is small enough
The diff display is rather slow now, probably because everything is
put into one big pre tag. Before we can fix this, we have to parse the
diff better. For now, just display a message.
2008-06-14 21:29:20 +02:00
Pieter de Bie 12b13d2aa4 Use a Commit model in Javascript to parse commit data
This includes the prototype library in the bundle for convenience.
Whenever a new commit is selected, a new Commit object is created that
is going to parse the raw message. From the object we can select
author information, diffs, etc.

Currently there is still a bug with commits without content changes.
2008-06-14 21:03:49 +02:00