Commit Graph

750 Commits

Author SHA1 Message Date
Nathan Kinsinger 1917bca23b Fix file names with spaces not working in the contextual menu
Files with spaces end up with 4 extra spaces after the name. This stops them from working with the various commands in the contextual menus.
2010-03-20 21:44:51 -07:00
Nathan Kinsinger 2e549a18f8 Fix for "Remote host closed connection" exception
EINTR errors are recoverable, just need to read() again.
Randomly while looking at files in the file browser the contents view will be empty or files will not be shown when clicking a discloser triangle. Seems to happen more when running in XCode than when running by itself.
2010-03-20 21:44:16 -07:00
Nathan Kinsinger f60f8ad7ad Bugfix: fix the contextual menu and drag-n-drop of refs
When the Subject column is not the first column in the git history table the contextual menu for refs and dragging and dropping refs don't work.
Offset the mouse click's x value by the x origin of the Subject column.
In PBRefController look up the column index of the subject column and check that it's the clicked column (don't assume it's the first one).
2010-03-20 21:43:42 -07:00
Kevin LaCoste 64f2745dfa Make the Preferences window a panel.
This enables the standard behaviour of dismissing the panel with the <esc> key.
2010-03-16 00:54:20 -07:00
Kevin LaCoste b87f9b0e35 Resize the text in the toolbar search field.
The default text size of 13 causes highlighting to be off by one pixel. With a text size of 12 highlighting behaves correctly.
2010-03-16 00:53:31 -07:00
Gautam Dey 16e0ca2add [#228:fixed] removed default text when no commits are found 2010-03-13 04:46:21 -08:00
Bernard Leach 6c2675c9cd Unescape the filename to ensure that filenames containing '&' are displayed correctly 2009-09-25 09:49:56 +02:00
Pieter de Bie e901894c35 HistoryController: remember location of the split view 2009-09-21 22:10:05 +02:00
Pieter de Bie acfa464eb4 PBViewController: add a method that is called when a view is loaded for the first time 2009-09-21 22:09:33 +02:00
Pieter de Bie 4bc43dbd7f Remove Sparkle feed url changer
Apparently the setFeedURL: method is persistent, so if someone ever used
a nightly, it would keep the debug URL. That's not what I intended (I wanted
to use a different URL for debugging purposes), so let's just remove it.
2009-09-18 01:06:10 +02:00
Pieter de Bie ca209652e2 Info.plist: No longer use the LONG_VERSION hack
Since 0b81911d we have a nicer Git version we can use, so we no longer
require this hack. It also interferes with Sparkle's updating system,
so just remove it and use the same versioning system as we use for
the short string.
2009-09-18 00:57:48 +02:00
Pieter de Bie 9b20e51685 Add release notes for 0.7.1 v0.7.1 2009-09-18 00:47:58 +02:00
Pieter de Bie 1ba804d426 Merge branch 'pu/pb/newSparkle' into stable
* pu/pb/newSparkle:
  Add update key
  Update Sparkle Framework
2009-09-18 00:39:10 +02:00
Pieter de Bie 63f6144cef CommitView: edit the xib a bit
This thing crashed when switching to the commit view in a WebKit private method.
After resaving, it worked again. Not very confidence inspiring :(
2009-09-18 00:15:28 +02:00
Pieter de Bie 7bfcf9af70 Add update key 2009-09-18 00:03:43 +02:00
Pieter de Bie 5972bd4f7f HistoryView: Don't show the 'loading commit' thing until after 500 ms.
This was annoying me a lot, so it's in stable :)

Signed-off-by: Pieter de Bie <pdebie@ai.rug.nl>
2009-09-17 23:40:38 +02:00
Pieter de Bie 34394d056b HistoryView: Remove raw view
I don't think anybody has ever used this, so let's just remove it.
2009-09-17 23:32:35 +02:00
Pieter de Bie 0363eea494 HistoryView: don't load in commit information in a separate thread anymore
I've seen this hang or crash a few times, so I hope this works better.
Instead of running a task in a separate thread, we just let it go through
the run loop and catch it when the task is done.

This ruins the second subview in the history view, but I don't think
anybody ever used that, so I'm going to remove it.
2009-09-17 23:29:06 +02:00
Pieter de Bie 77473612d9 Update Sparkle Framework 2009-09-17 13:28:07 +02:00
Pieter de Bie 2cdf2b60f5 Merge branch 'pu/pb/index_quick_fix' into stable
* pu/pb/index_quick_fix:
  CommitView: Don't keep rearranging when iterating over files
  IndexController: de-privatize the index-stopping stuff
2009-09-14 15:09:03 +02:00
Pieter de Bie 3324591e6c Fix UTF-8 bug in NSString_RegEx
This class would use the location information provided by
regex(3) as range for for a substring. However, the information
regex(3) returns is a byte-based, while NSString works on characters.

This can cause a problem when there are UTF-8 characters in the string,
as the wrong subsstring will be returned.

This is fixed by taking the UTF bytesequence, and extracting a substring
from that, rather than using NSString's own substring method
2009-09-14 13:25:01 +02:00
Pieter de Bie 00731eb285 CommitView: Don't keep rearranging when iterating over files 2009-09-12 23:43:35 +02:00
Pieter de Bie 916711324f IndexController: de-privatize the index-stopping stuff
We shouldn't need to do this, but we still need to, because
our index operations are split between two different controllers,
which is a bit odd.
2009-09-12 23:43:14 +02:00
Johannes Gilger 4544816ac8 GitX.css: Set a default-font for body
Some people have had Serif-fonts in their interface where no specific
fonts for classes/ids were specified. This sets the default-font to
'Lucida Grande' in order to have a nice non-serif on any system.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-09 23:03:03 +02:00
Johannes Gilger b7945b05e9 UserManual: Clarify double-click in stage-lines
Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-09 10:19:33 +02:00
Pieter de Bie ff5388cc24 HistoryView: Remove focus border
That's so 1999!
2009-09-08 16:42:55 +02:00
Pieter de Bie 53ca665271 Delete this test file.
I don't think we need it anymore. Otherwise, we can alway
get it back.
2009-09-08 15:53:43 +02:00
Pieter de Bie b6575d9dba Update site to mention git v1.6.0 requirement' 2009-09-08 15:19:04 +02:00
Johannes Gilger 3a1b10ae8f PBGitTree: Improve binary-file decision
This uses the same mechanisms as git to determine whether a file is
binary: By simply searching the first 8000 bytes for a 0-byte. This
gets rid of the call to "file" and is a much cleaner and shorter
implementation.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-08 15:13:13 +02:00
Pieter de Bie 3861deecfa Require Git 1.6.0 or higher
Git 1.6.0 was released over a year ago now, so it shouldn't be too hard
to get people to upgrade to that. We need 1.6.0 for the --children revlist
option.

Requiring Git 1.6.0 or higher means we can also revert
a94981f35 (RevList: Don't rely on the presence of %x00) sometime.
2009-09-08 00:06:57 +02:00
Pieter de Bie c95a22acc3 Add a link to the user survey v0.7 2009-09-07 15:22:24 +02:00
Johannes Gilger 8243cf58b3 PBGitTree: Don't try to print binary-file contents
This patch prevents the plaintext display of files with binary content
in tree-view by connecting the content to the textContents attribute.

PBGitTree is extended with the method textContents, which returns the
textual representation of a PBGitTree-object. The methods first checks
the output of "git check-attr binary <file>" to see if the user
set/unset the binary attribute manually. Then it checks for common
binary file-extensions. If this method can't determine whether the file
is binary, the file-content is loaded and Unix "file" is run on the
first 100 bytes of the file to make a decision.

It also adds the -[PBGitTree fileSize] method to check the size
of the file before actually loading its contents.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
Edited-by: Pieter de Bie <pdebie@ai.rug.nl>
2009-09-07 14:38:44 +02:00
Johannes Gilger 8750060621 Site: Get rid of auto-refresh description
Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-09-07 14:35:39 +02:00
Pieter de Bie 6f18d9457a Add a few more release points 2009-09-07 13:44:24 +02:00
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