Download the PHP package totten/git-scan without Composer
On this page you can find all versions of the php package totten/git-scan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download totten/git-scan
More information about totten/git-scan
Files in totten/git-scan
Package git-scan
Short Description CLI tool for scanning/updating git repos
License AGPL-3.0
Informations about the package git-scan
git-scan
Git-scan is designed for users who have many overlapping git repositories -- for example, developers who work with "composer" or "drush-make" may build out working directories which include half a dozen or more repos. Key features:
- Zero configuration
- Works with deeply nested repositories
- Filters and displays repositories based on their status ("git scan status")
- Performs safe (fast-forward) updates on repositories when valid ("git scan update")
- Executes custom commands ("git scan foreach -c '...'")
- Agnostic to the build system (eg works equally well with "composer", "drush-make", and manually-written build scripts)
- Agnostic to the branch/submission/review process (eg works with personal read/write repos as well as GitHub repos that require pull-requests)
Limitations:
- IO-intensive -- Performs filesystem scan and does not cache results
The concepts and use-case are described in more depth in the blog post, Developer Tip: Managing Multiple Git Repos
Download
git-scan is distributed in PHAR format, which is a portable executable file (for PHP). It should run on most Unix-like systems where PHP 7.2+ is installed.
Simply download git-scan to somewhere in your PATH, and make it executable, eg.
Examples
Configuration
You may optionally create a file, ~/.git-scan.json
, to customize the
behavior. Supported options:
excludes
: An array of path names to skip when scanning (e.g..svn
or.hg
).
Development: Unit-Tests
If you have phpunit 8.x / 9.x, then you can run the test suite. For example:
The helper ./scripts/test.sh
is a small wrapper which will download and
execute a suitable version of phpunit
.
Development: Build (PHAR)
If you are developing new changes to git-scan
and want to create a new
build of git-scan.phar
from source, you should have
git
, composer
, and
box
.
The helper ./scripts/build.sh
is small wrapper which will download and
execute a suitable version of box
.
All versions of git-scan with dependencies
symfony/console Version ~5.4
symfony/process Version ~5.4
symfony/filesystem Version ~5.4
symfony/finder Version ^4.4
civicrm/composer-downloads-plugin Version ~3.0