Skip to content

POC/WIP toolchain for dealing with the new split horde repos.

License

Notifications You must be signed in to change notification settings

mrubinsk/horde-git-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Horde-Git-Tools

POC/WIP toolchain for dealing with the upcoming split repository structure of Horde

Installation

Uses composer for dependency management.

git clone --depth 1 https://github.com/horde/horde.git horde-git
git clone https://github.com/mrubinsk/horde-git-tools.git horde-git-tools
cd horde-git-tools
composer.phar install
cp config/conf.php.dist config/conf.php
# Review config/conf.php and set values accordingly.

Usage

Current usage. Subject to change until code is finalized. Also see the --help text.

# The horde-git-tools command can be found at the horde-git-tools/bin directory.

# Options can also be given on command line. See usage for information.
horde-git-tools --help

# Clones all repositories locally to the configured git_base directory.
horde-git-tools git clone

# Links (or copies) to a web accessible directory (replacement for old
# install_dev script).
horde-git-tools dev install

# List available repositories on remote.
# Providing the --verbose flag will output full response from GitHub.
horde-git-tools --verbose git list

# Attempt to checkout a specific branch on all repositories.
horde-git-tools git checkout FRAMEWORK_5_2

# Attempt to git pull --rebase all repositories.
# Still need to add options like ability to ensure repo is on a specific
# branch before pulling, option to automatically stash/pop if repository is
# not clean etc...
horde-git-tools git pull

# Attempt to perform arbitrary git command on all repositories.
horde-git-tools git run "reset HEAD"

# Do the same, but only for imp and ansel.
horde-git-tools git run --repositories=imp,ansel "reset HEAD"

# Report on status of each repository.
# Still need to tweak and add options, better display etc...
horde-git-tools git status

# Perform a "component" action
horde-git-tools component /path/to/repository update
horde-git-tools component /path/to/repository changed '[mjr] Some change'
horde-git-tools component /path/to/repository release

Still todo

  • Create install action that will perform a full pear install of the webmail or groupware bundle (or optionally a specified list of applications).

About

POC/WIP toolchain for dealing with the new split horde repos.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages