Overview

Namespaces

  • Cz
    • Git

Classes

  • Cz\Git\Git

Interfaces

  • Cz\Git\IGit

Exceptions

  • Cz\Git\GitException
  • Overview
  • Namespace
  • Class
  1:   2:   3:   4:   5:   6:   7:   8:   9:  10:  11:  12:  13:  14:  15:  16:  17:  18:  19:  20:  21:  22:  23:  24:  25:  26:  27:  28:  29:  30:  31:  32:  33:  34:  35:  36:  37:  38:  39:  40:  41:  42:  43:  44:  45:  46:  47:  48:  49:  50:  51:  52:  53:  54:  55:  56:  57:  58:  59:  60:  61:  62:  63:  64:  65:  66:  67:  68:  69:  70:  71:  72:  73:  74:  75:  76:  77:  78:  79:  80:  81:  82:  83:  84:  85:  86:  87:  88:  89:  90:  91:  92:  93:  94:  95:  96:  97:  98:  99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 
<?php
    /** IGit interface
     * 
     * @author      Jan Pecha, <janpecha@email.cz>
     */
    
    namespace Cz\Git;
    
    interface IGit
    {
        /**
         * Creates a tag.
         * @param   string
         * @throws  Cz\Git\GitException
         */
        public function tag($name);
        
        
        
        /**
         * Merges branches.
         * @param   string
         * @param   array|NULL
         * @throws  Cz\Git\GitException
         */
        public function merge($branch, $options = NULL);
        
        
        
        /**
         * Creates new branch.
         * @param   string
         * @param   bool
         * @throws  Cz\Git\GitException
         */
        public function branchCreate($name, $checkout = FALSE);
        
        
        
        /**
         * Removes branch.
         * @param   string
         * @throws  Cz\Git\GitException
         */
        public function branchRemove($name);
        
        
        
        /**
         * Gets name of current branch
         * @return  string
         * @throws  Cz\Git\GitException
         */
        public function branchName();
        
        
        
        /**
         * Checkout of branch.
         * @param   string
         * @throws  Cz\Git\GitException
         */
        public function checkout($name);
        
        
        
        /**
         * Removes file(s).
         * @param   string|string[]
         * @throws  Cz\Git\GitException
         */
        public function remove($file);
        
        
        
        /**
         * Adds file(s).
         * @param   string|string[]
         * @throws  Cz\Git\GitException
         */
        public function add($file);
        
        
        
        /**
         * Commits changes
         * @param   string
         * @param   string[]  param => value
         * @throws  Cz\Git\GitException
         */
        public function commit($message, $params = NULL);
        
        
        
        /**
         * Exists changes?
         * @return  bool
         */
        public function isChanges();
    }
    
    
    
    class GitException extends \Exception
    {
    }

czproject/git-php v1.0.0 API documentation API documentation generated by ApiGen