Skip to content

k1LoW/fatty

Repository files navigation

Fatty: Simple Git repogitory browser plugin for CakePHP.

Git eat Cake!!

This plugin provide local self git repogitory browser.

Features

  • `Commit History’ like GitHub ( git log ).
  • `Commit’ detail like GitHub ( git show ).
  • `Diff’ between hashes ( git diff ).
  • File blame like GitHub ( git blame ).
  • Display repogitory file tree ( git ls-tree ).
  • Display current branch name.

Usage

First, put `fatty’ directory on app/plugins in your CakePHP application.
Second, add the following code in bootstrap.php.

<?php
    Configure::write('Fatty.git_path', '/usr/local/bin/git'); // git path
    Configure::write('Fatty.git_dir', ROOT . DS . '.git' . DS); // local .git directory path

or

<?php
    define('FATTY_GIT_PATH', '/usr/local/bin/git'); // git path
    define('FATTY_GIT_DIR', ROOT . DS . '.git' . DS); // local .git directory path

Then, goto http://yourapp/fatty/ .

Drag and drop diff

Double click file tree

Double click anywhere, display repogitory file tree.

Display current branch name

Add the following code in whichever controller you want to display current branch name like DebugKit toolbar (typically AppController).

<?php
class AppController extends Controller {
    var $components = array('Fatty.Git');
}

TODO

  • Support CakePHP 1.3
  • Support auto paging
  • Support git diff any hash
  • Support git blame
  • Support file commit log ( git log file )
  • File tree (git ls-tree)
  • Fix multi_parents bug

About

Simple Git repogitory browser plugin for CakePHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published