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).
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.
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)
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
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.]
* 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)
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"
* 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
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.
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.
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.
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.