Commit Graph

716 Commits

Author SHA1 Message Date
Stonewall Ballard 85322728fa Add preferences for opening things at launch.
Heavily-Edited-By: Pieter de Bie <pdebie@ai.rug.nl>
2009-09-07 13:37:17 +02:00
Pieter de Bie ed4bb78706 Merge branch 'pu/jg/docs'
* pu/jg/docs:
  Update releasenotes, as autorefresh won't make it into 0.7
  ReleaseNotes for v0.7 with author information
  Site: W3C-Valid and CSS/HTML corrections
  UserManual: Rewrite most parts for GitX 0.7
  GitX 0.7 Release-Notes
  UserManual: Add disclaimer as to what GitX is

Conflicts:
	Site/UserManual/text/01 - Introduction.markdown
2009-09-07 12:58:25 +02:00
Pieter de Bie 6515624267 Update releasenotes, as autorefresh won't make it into 0.7 2009-09-07 12:55:50 +02:00
Johannes Gilger 6b56919b31 ReleaseNotes for v0.7 with author information
Include Dave's reload feature and author-information for the most
important parts. Also a list of contributors since v0.6.3 from the
shortlog.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-06 15:00:09 +02:00
Pieter de Bie 26c3cd1f48 HistoryView: Add "SHA" Column and make it hidden by default 2009-09-06 14:46:58 +02:00
Johannes Gilger 788cd7163b Site: W3C-Valid and CSS/HTML corrections
* Makes all the pages (except "See it") W3C Valid
* Adjusts a few texts here and there a little bit
* Makes the menubar span the whole div and display correct on FF/Linux
* Moves "GitX" in the header a few px down to center it

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-06 14:38:48 +02:00
Pieter de Bie 5fc59901c0 Merge branch 'pu/jg/describe'
* pu/jg/describe:
  About-Panel: Show git-describe using Info.plist
2009-09-06 13:24:01 +02:00
Johannes Gilger 0b81911d76 About-Panel: Show git-describe using Info.plist
This patch adds a CFBundleGitRevision key to Info.plist which is set to
the output of "git describe" when building.

The menu-entry for "About GitX" was reconnected to a custom method in
the AppController, which reads the CF-string from the .plist and also
indicates if the build is a DEBUG-build.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-06 13:23:38 +02:00
Johannes Gilger 9d2efb1bb6 UserManual: Rewrite most parts for GitX 0.7
This rewrites most of the UserManual for GitX 0.7 and also updates the
screenshots to reflect the latest GitX-version.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-06 12:20:52 +02:00
Johannes Gilger b86d2c480f UserManual: Add disclaimer as to what GitX is
Add a disclaimer about the intended use of GitX. A lot of people seem to
think GitX is a way to make using a complex system easy. Other think
that they can learn git by clicking their way around GitX.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-03 16:04:52 +02:00
Johannes Gilger 8b74bc04f5 GitX 0.7 Release-Notes
This prepares the GitX 0.7 release-notes and also fixes two small bugs
in the previous notes.

It also fixes a CSS-bug which makes the gitx-website display the same
font with Firefox and Safari instead of using a serif with FF.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-03 15:47:26 +02:00
Johannes Gilger 1f7a818743 UserManual: Add disclaimer as to what GitX is
Add a disclaimer about the intended use of GitX. A lot of people seem to
think GitX is a way to make using a complex system easy. Other think
that they can learn git by clicking their way around GitX.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-03 15:47:20 +02:00
Johannes Gilger 8cdb2e6c9d Add empty line at end of previous release notes 2009-09-03 10:22:29 +02:00
Johannes Gilger 4e2b0535d4 This fixes a CSS-bug which makes the gitx-website display the same
font with Firefox and Safari instead of using a serif with FF.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-03 10:21:36 +02:00
Johannes Gilger d3cb020598 commit.js: Fix discardHunk functionality
When rewriting big parts of commit.js, JD forgot to use the new function
for the "Discard hunk" functionality as well. This fixes that.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-03 10:13:44 +02:00
Benjamin Kramer a8f4304f86 Fix checkbox scaling warnings
This fixes Snow Leopard's "The image scaling property should not be used with
checkboxes" warnings. Noticed by Stonewall Ballard.
2009-08-31 22:35:33 +02:00
Johannes Gilger 0823ff859d Keep window-title up-to-date in commit view
This issues a simple reloadRefs when refreshing the commit-view, keeping
the current branchname up-to-date here as well.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-08-31 12:17:17 +02:00
Pieter de Bie a5cfbe1b42 Merge commit '2f9ca38689cc5dff15d7e52af846f275c00295d2'
* commit '2f9ca38689cc5dff15d7e52af846f275c00295d2':
  Fix build with external build products directory
  Statusbar: Bring View-Mode buttons to front
2009-08-28 00:37:33 +02:00
Pieter de Bie 85fcee1710 DiffHighlighter: Remove weird end line
This was added in 1688c2a (diffHighlighter.js: Record the line index as attribute.),
I guess by accident
2009-08-28 00:34:30 +02:00
Pieter de Bie 64bc1f96ca IndexController: re-add ellipsis to "Discard Changes" menu item
This was accidentally deleted when I applied a patch from JS
2009-08-28 00:32:50 +02:00
Pieter de Bie 703782163d PBChangedFile: Add assert to make sure we're not doing something stupid 2009-08-28 00:31:42 +02:00
Pieter de Bie f9f6809c40 Also set blobMode / blobSha for unstaged changes.
It shouldn't matter if a file has staged / unstaged changes, as long as the
file is tracked, the SHA and blob should be recorded.

This had really annoying complications because PBChangedFile used this
information to decide whether or not to delete a file from the index
when unstaging in PBGitIndexController
2009-08-28 00:31:23 +02:00
Pieter de Bie 9320ef71a8 Merge branch 'js/selectable_hunk' of git://github.com/jdtsmith/gitx
* 'js/selectable_hunk' of git://github.com/jdtsmith/gitx:
  commit.js: Interface for selecting lines to (un-)stage.
  commit.js: Refactor hunk retrieval.
  diffHighlighter.js: Record the line index as attribute.
  commit view: Ensure buttons display on top of text
2009-08-28 00:18:23 +02:00
Benjamin Kramer 86f9adb6a0 Fix an obvious typo
Found by the clang static analyzer.
2009-08-28 00:15:01 +02:00
Gerd Knops 2f9ca38689 Fix build with external build products directory 2009-08-20 11:35:09 +02:00
Johannes Gilger 6af38e934a Statusbar: Bring View-Mode buttons to front
When resizing the GitX-window to small widths the buttons for switching
the view-mode would eventually "disappear" behind the label for loaded
commits. This fixes that behaviour, so that the buttons always go in
front of it, and therefore remain usable.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-08-19 13:01:31 +02:00
JD Smith ab47c14d6e commit.js: Interface for selecting lines to (un-)stage. 2009-07-08 17:22:09 -04:00
Johannes Gilger 193b834a5c PBCollapsibleSplitView: Enable collapse/uncollapse using keys
This adds a method to programmatically collapse/uncollapse the two
subviews of our custom SplitView-class. It also implements a
keyDown-method so that the collapsing can be used with
Command-Shift-{Up,Down}.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-07-07 18:46:04 +01:00
Johannes Gilger d669050551 Add PBCollapsibleSplitView as subclass of PBNiceSplitView
This adds a subclass to PBNiceSplitView which has collapsible subviews
as well as an uncollapse-method. The initWithTopMin method is used to
set the minimum sizes for the subviews.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-07-07 18:46:00 +01:00
Pieter de Bie f146e9a346 Site: smush.it images 2009-07-07 12:13:04 +01:00
Pieter de Bie 04db47d8e6 Merge commit 'origin/master'
* commit 'origin/master':
  CommitController: Don't turn of off automatic rearranging
  PBGitRepository: Clean up the readFromURL: method
  PBGitRepository: Fix opening of large directories due to bug in NSFileWrapper.
  PBGitIndexController: Renamed "Revert" to "Discard"
  CommitController: Reject merges
  HistoryController: Add "Open Files" menu item
  WebHistoryView: Also use the tree context menu
  HistoryController: Use a programatically created context menu
  WebHistoryController: Refactor menu search to be recursive
  HistoryController: Add some marks
  PBGitHistory: Add "Show in Finder" to files
  Display context menu in the history tree to show related commits
  History fileview: select current item on rightclick
  PBGitConfig: Add missing sentinel
  Remove use of deprecated stringWithCString
  HistoryView: only add parents if parents array exists
  keyboardNavigation: Fix keys 'c' and 'v' from webView
  Site: add link to Twitter

Conflicts:
	PBGitHistoryView.xib
	PBGitIndexController.m
2009-07-07 12:02:27 +01:00
Nicholas Riley 3ee50de56b Truncate the middle of pathnames in the Unstaged/Staged Changes lists.
Previously, the ends of the pathnames were truncated instead, which
could lose the filename.
2009-07-07 11:56:55 +01:00
Nicholas Riley 3bed4975fc Clean up UI and add keyboard support for create branch sheet.
Maps Return to OK and Escape/Command-Period to Cancel.

Renames OK to Create (a verb is better).

Fixes autoresizing masks so the layout doesn't break when you resize
the sheet.
2009-07-07 11:56:40 +01:00
Nicholas Riley f2a37df9f5 Set keyboard focus reasonably when switching between views.
When you switch to the commit view, the commit message gets focus;
when you switch to the history view, the commit list gets focus.
2009-07-07 11:56:40 +01:00
Nicholas Riley 7baf854666 Remove extraneous space in "Are you sure you wish to revert changes?" message. 2009-07-07 11:56:40 +01:00
Nicholas Riley f25aad8ee2 Don't disturb editing state when inserting "Signed-off-by" line. 2009-07-07 11:56:40 +01:00
Nicholas Riley 9fff83a0af Reduce font size of staged/unstaged changes lists.
This is better for smaller screens and deeply nested paths.
2009-07-07 11:56:35 +01:00
JD Smith 62333bf51b commit.js: Refactor hunk retrieval.
To work with subhunks, allow passing a header line explicitly to search for.
2009-06-21 02:36:02 +01:00
JD Smith 1688c2a359 diffHighlighter.js: Record the line index as attribute. 2009-06-21 02:35:58 +01:00
JD Smith bcc652bacf commit view: Ensure buttons display on top of text
... but beneath title line.
2009-06-21 02:26:32 +01:00
Pieter de Bie 64182ea911 Merge commit 'origin/jg/tree_context'
* commit 'origin/jg/tree_context':
  HistoryController: Add "Open Files" menu item
  WebHistoryView: Also use the tree context menu
  HistoryController: Use a programatically created context menu
  WebHistoryController: Refactor menu search to be recursive
  HistoryController: Add some marks
  PBGitHistory: Add "Show in Finder" to files
  Display context menu in the history tree to show related commits
  History fileview: select current item on rightclick
2009-06-20 22:28:19 +01:00
Pieter de Bie a03401dd51 CommitController: Don't turn of off automatic rearranging
In a6b7c0c2a6 (GitCommitController: Also use dictionary lookup for untracked files),
we started using a dictionary when updating the index to avoid O(n^2) lookups
and make the code cleaner at the same time.

Before that change we temporarily stopped tracking the index, so that
the controller wasn't fired with hundreds of KVO notifications. in a6b7c0c2a6,
we removed the re-tracked, but accidentally kept the untracking portion, which
meant that some index changes would not propagate to the controllers.
2009-06-20 21:58:34 +01:00
Pieter de Bie 6fd339756e Merge branch 'stable'
* stable:
  PBGitConfig: Add missing sentinel
  Remove use of deprecated stringWithCString
  HistoryView: only add parents if parents array exists
  keyboardNavigation: Fix keys 'c' and 'v' from webView
  Site: add link to Twitter

Conflicts:
	Site/text/contact.markdown
2009-06-20 21:34:49 +01:00
Pieter de Bie fa6ff44d0b PBGitRepository: Clean up the readFromURL: method
We used a BOOL value which was returned afterwards,
but we might as well just return early and simplify everything
2009-06-20 21:33:22 +01:00
Benoit Cerrina fa6182e2a4 PBGitRepository: Fix opening of large directories due to bug in NSFileWrapper.
This commit changes  readFromFileWrapper:ofType:error: to readFromURL:ofType:error:.

The default implementation of readFromURL calls readFromFileWrapper, but a bug
in NSFileWrapper makes this fail with repositories with a large number of files
(not sure if the fact that those files were in subdirectories matter or not).

So instead we skip the whole FileWrapper thing, which we don't really use anyway,
and just use the URL.
2009-06-20 21:33:22 +01:00
Johannes Gilger 34f72ba27a PBGitIndexController: Renamed "Revert" to "Discard"
In keeping consistent with the Discard-Hunk functionality we rename the
former "Revert changes" on file-level to "Discard changes". Along with
the menu-item all the functions and variables have been renamed
accordingly. Also get rid of an unnecessary force-function.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-06-20 21:19:26 +01:00
Pieter de Bie d6ccf34881 CommitController: Reject merges
We don't support this in any way yet, so let's just
issue a warning rather than failing silently
2009-06-20 21:10:54 +01:00
Pieter de Bie 7427cbe05d HistoryController: Add "Open Files" menu item 2009-06-16 19:41:57 +01:00
Pieter de Bie a002e3316c WebHistoryView: Also use the tree context menu 2009-06-16 19:41:57 +01:00
Pieter de Bie 1199c56e93 HistoryController: Use a programatically created context menu
This allows us to differentiate between one or multiple files,
and will also come in use when we want to create a context menu
from the webview later on

We now use representedObjects to store the selected paths.
That should make it possible to reuse the menu's from somewhere else.
2009-06-16 19:41:52 +01:00