Oh crap, now we've both done the same thing. Sorry about that!
On Mon, Sep 7, 2009 at 2:13 PM, Johannes Gilger<[email protected]> wrote: > > 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.
