-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename the request-review-branch command to branch
Rename the request-review-branch command to branch because now that it does everything branch did and more we don't need the distinction between the two separate commands. Also it makes it clearer as to what is actually going on. [changelog] changed: the request-review-branch command to just be branch added: the command alias "b" to the new branch command <!-- ps-id: dbcfdcc5-e26a-49da-9fdb-f4cf64270a33 -->
- Loading branch information
1 parent
abb9177
commit dbfda73
Showing
12 changed files
with
80 additions
and
95 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
use super::super::private; | ||
use super::super::private::git; | ||
use std::result::Result; | ||
|
||
#[derive(Debug)] | ||
pub enum BranchError { | ||
OpenRepositoryFailed(git::CreateCwdRepositoryError), | ||
BranchOperationFailed(private::branch::BranchError), | ||
} | ||
|
||
pub fn branch( | ||
start_patch_index: usize, | ||
end_patch_index: Option<usize>, | ||
branch_name: Option<String>, | ||
) -> Result<(), BranchError> { | ||
let repo = git::create_cwd_repo().map_err(BranchError::OpenRepositoryFailed)?; | ||
private::branch::branch(&repo, start_patch_index, end_patch_index, branch_name) | ||
.map_err(BranchError::BranchOperationFailed)?; | ||
Ok(()) | ||
} |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.