heavenproject / git-branch-panel
Displays current Git branch on Tracy debug panel
Installs: 1 379
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- nette/di: ^2.3
- tracy/tracy: ^2.3
Requires (Dev)
- mockery/mockery: ~0.9.0
- nette/application: ^2.3
- nette/bootstrap: ^2.3
- nette/tester: *
- php-mock/php-mock-mockery: ~1.1.0
This package is not auto-updated.
Last update: 2024-11-09 19:48:19 UTC
README
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.