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
2009-01-19 16:38:02 +00:00
2008-06-21 13:41:55 +02:00
2008-09-17 12:58:39 +02:00
2008-06-21 13:30:57 +02:00
2008-11-17 15:31:56 +01:00
2008-06-16 00:25:34 +02:00
2008-09-20 22:23:51 +02:00
2009-06-20 21:34:49 +01:00
2008-06-13 15:41:30 +02:00
2008-10-21 15:43:26 +02:00
2009-05-27 18:25:14 +01:00
2008-10-21 15:43:26 +02:00
2008-10-21 15:43:26 +02:00
2008-10-21 15:43:26 +02:00
2009-03-23 23:33:43 +00:00
2009-01-25 02:14:09 +00:00
2009-01-25 02:14:09 +00:00
2008-11-24 22:54:04 +01:00
2008-11-24 22:54:04 +01:00
2009-08-28 00:15:01 +02:00
2009-04-29 12:30:29 +01:00
2008-09-19 13:56:46 +02:00
2008-09-19 19:22:40 +02:00
2008-11-24 22:54:04 +01:00
2008-11-26 17:44:24 +01:00
2008-10-21 15:43:26 +02:00
2008-09-12 19:35:11 +02:00
2008-09-24 17:19:58 +02:00
2008-09-24 17:19:58 +02:00
2008-11-24 22:32:46 +01:00
2008-11-24 22:32:46 +01:00
2008-06-13 15:41:30 +02:00

GitX
---------------

# What is GitX?

GitX is a gitk like clone written specifically for OS X Leopard and higher.
This means that it has a native interface and tries to integrate with the
operating system as good as possible. Examples of this are drag and drop
support and QuickLook support.


# Features

The project is currently still in its starting phases. As time goes on,
hopefully more features will be added. Currently GitX supports the following:

  * History browsing of your repository
  * See a nicely formatted diff of any revision
  * Search based on author or revision subject
  * Look at the complete tree of any revision
    * Preview any file in the tree in a text view or with QuickLook
    * Drag and drop files out of the tree view to copy them to your system
   * Support for all parameters git rev-list has
# License

GitX is licensed under the GPL version 2. For more information, see the attached COPYING file.

# Downloading

GitX is currently hosted at GitHub. It's project page can be found at
http://github.com/pieter/gitx. Recent binary releases can be found at
http://github.com/pieter/gitx/wikis.

If you wish to follow GitX development, you can download the source code
through git:

  git clone git://github.com/pieter/gitx

# Installation

The easiest way to get GitX running is to download the binary release from the
wiki. If you wish to compile it yourself, you will need XCode 3.0 or later. As
GitX makes use of features available only on Leopard (such as garbage
collection), you will not be able to compile it on previous versions of OS X.

To compile GitX, open the GitX.xcodeproj file and hit "Build".

# Usage

GitX itself is fairly simple. Most of its power is in the 'gitx' binary, which
you should install through the menu. the 'gitx' binary supports most of git
rev-list's arguments. For example, you can run `gitx --all' to display all
branches in the repository, or `gitx -- Documentation' to only show commits
relating to the 'Documentation' subdirectory. With `gitx -Shaha', gitx will
only show commits that contain the word 'haha'. Similarly, with 'gitx
v0.2.1..', you will get a list of all commits since version 0.2.1.

# Helping out

Any help on GitX is welcome. GitX is programmed in Objective-C, but even if
you are not a programmer you can do useful things. A short selection:

  * Create a nice icon;
  * Help with the Javascript/HTML views, such as the diff view;
  * File bug reports and feature requests.

A TODO list can be found on the wiki: http://github.com/pieter/gitx/wikis/todo

S
Description
No description provided
Readme 9.8 MiB
Languages
Objective-C 71.2%
CSS 11.8%
JavaScript 6.8%
HTML 5.5%
SCSS 1.5%
Other 3.2%