Created
February 2, 2010 17:01
-
-
Save co3k/292815 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright 2010 Kousuke Ebihara | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
*/ | |
interface VersionControl_Centralized_Interface extends VersionControl_Interface | |
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright 2010 Kousuke Ebihara | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
*/ | |
interface VersionControl_Distributed_Interface extends VersionControl_Interface | |
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright 2010 Kousuke Ebihara | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
*/ | |
interface VersionControl_Interface | |
{ | |
/** | |
* Get an array of simple change list | |
* | |
* SVN: | |
* array( | |
* 'r110' => 'fixed some errors', | |
* 'r111' => 'added ability to do something', | |
* 'r120' => 'merged r115', | |
* ); | |
* | |
* Git: | |
* array( | |
* 'fe8a10' => 'fixed some errors', | |
* 'a311ac' => 'added ability to do something', | |
* '2d9aee' => 'merged 73eab1', | |
* ); | |
* | |
*/ | |
public function getChangeList(); | |
/** | |
* Create branch to server | |
*/ | |
public function createServerBranch(); | |
/** | |
* Checkout / Clone repository from server | |
*/ | |
public function fetchResourceFromServer(); | |
/** | |
* Update / Pull changes to working copy | |
*/ | |
public function recordChangesToWorkingCopy(); | |
/** | |
* Commit / Push changes to server | |
*/ | |
public function recordChangesToServer(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment