Skip to content

Commit

Permalink
Fix README to correspond with current state
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Drábek committed Mar 2, 2016
1 parent 2ece23e commit 1cfc4ef
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Git Version Panel
======================
# Git Version Panel

Panel for Tracy debug panel.
Shows current branch and current revision hash to be able identify your deployed version on sight.
Expand All @@ -8,22 +7,36 @@ Inspired by https://gist.github.com/vvondra/3645108.

![](http://oi59.tinypic.com/34oviv9.jpg)

Installing
----------
## Installing

Install library via composer:

```
composer require jandrabek/tracy-gitversion-panel
```

Register panel

## Registerring...

### In older versions of Nette (< 2.2)

```
nette:
debugger:
bar: [JanDrabek\Tracy\GitVersionPanel]
# Or when you register multiple extensions
# bar:
# - JanDrabek\Tracy\GitVersionPanel
bar:
- JanDrabek\Tracy\GitVersionPanel
```

### In newer versions of Nette (>= 2.2)

```
tracy:
bar:
- JanDrabek\Tracy\GitVersionPanel
```

### In pure Tracy

```
Tracy\Debugger::getBar()->addPanel(new JanDrabek\Tracy\GitVersionPanel());
```

0 comments on commit 1cfc4ef

Please sign in to comment.