Commit 715408c5 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'subcommand-ctor-public'

04e8deb5 git: make the `GitError::subcommand` public
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !70
parents e83733f6 04e8deb5
......@@ -52,7 +52,8 @@ pub enum GitError {
}
impl GitError {
pub(crate) fn subcommand(subcommand: &'static str, source: io::Error) -> Self {
/// Convenience method for constructing an error for a git subcommand failure.
pub fn subcommand(subcommand: &'static str, source: io::Error) -> Self {
GitError::Subcommand {
subcommand,
source,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment