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
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
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
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
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
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
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
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
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
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
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
a8cb5905ea
DiffView: Hilight trailing whitespace
2008-10-04 22:38:57 +02:00
Pieter de Bie
37a812504a
DiffView: make diff width 100%
2008-10-03 14:44:18 +02:00
Pieter de Bie
4de0a4a4bb
Add a file to test diff display on
2008-09-28 20:55:02 +02:00
Pieter de Bie
8c457e9f83
Use an alternative style for the diffs
2008-09-28 20:48:55 +02:00
Pieter de Bie
8835624d29
CommitView: Escape HTML characters with new files
2008-09-28 16:57:50 +02:00
Pieter de Bie
0f60b0cc44
HTMLView: Escape commit message from HTML entities
2008-09-26 00:19:30 +02:00
Pieter de Bie
001b6bf10e
CommitView: Handle new files better
...
This fixes the 'cat' command that was acting up and also shows
information when a file could not be displayed
2008-09-25 23:45:14 +02:00
Pieter de Bie
c6966ade41
HistoryView: Add a method to put a commit online
2008-09-25 22:25:46 +02:00
Michiel Holtkamp
991045c019
Changed default diff.html (nothing to commit) to something more understandable
2008-09-24 18:26:50 +02:00
Pieter de Bie
9b3909e759
CommitView: Add a status bar to the diff view
2008-09-23 21:51:20 +02:00
Pieter de Bie
252796ee26
CommitView: Show basic files
2008-09-23 01:02:33 +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
f48d0022e2
Allow copy and pasting of web source by pressing 'c'
2008-09-19 13:55:33 +02:00
Pieter de Bie
978a22c5a5
Add 'v' as a shortcut to show large diffs
2008-09-12 22:17:31 +02:00
Pieter de Bie
c3c4f98c66
Allow hunk navigation by using j/k keys
2008-09-12 22:12:58 +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
Pieter de Bie
045db4b625
WebView: limit diffs to a width of 250, not 100
...
100 was a bit low.
2008-08-19 00:26:29 +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