…or the first time
This was annoying me a lot, so it's in stable :) Signed-off-by: Pieter de Bie <email@example.com>
…ymore 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.
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
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.
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 <firstname.lastname@example.org>
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 <email@example.com>
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 a94981f (RevList: Don't rely on the presence of %x00) sometime.
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 <firstname.lastname@example.org> Edited-by: Pieter de Bie <email@example.com>
* 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
* 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 <firstname.lastname@example.org>