Componette

Componette

CSHH

CSHH / git-branch-panel v1.1.0

Displays current Git branch on Tracy debug panel

download-cloud-line composer require heavenproject/git-branch-panel

Git Branch Panel

Displays current Git branch on Tracy debug panel.

NOTE: This source code is based on another Nette component, see here and here.

Installation

composer require --dev heavenproject/git-branch-panel

Requirements

Documentation

In order to use Git Branch Panel you must register it as extension in configuration file:

extensions:
    gitPanel: HeavenProject\GitBranchPanel\GitBranchPanelExtension

The extension will search through all the parent directories for the .git directory and stops in the project root.

You can set custom path to a directory, in which the .git directory resides, this way:

gitPanel:
    entryPath: %appDir%/my/custom/path

If appDir is /app, the resulting path including the .git directory will be /app/my/custom/path/.git.

License

This source code is free software licensed under MIT license.

  • v1.1.0 Released version 1.1.0

    • Added ability to set custom entry path for .git directory
bar-chart-fill

Statistics

download-cloud-fill
1262
star-fill
0
bug-fill
0
flashlight-fill
4.8y
price-tag-2-line

Badges

guide-fill

Dependencies

Componette Componette felix@nette.org