mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-15 07:22:49 +03:00
Git Panel WIP.
This commit is contained in:
@@ -143,7 +143,7 @@ Git::CheckoutResult Git::checkout( const std::string& branch,
|
||||
res.returnCode = retCode;
|
||||
res.error = buf;
|
||||
} else {
|
||||
res.branch = buf;
|
||||
res.branch = branch;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
@@ -220,6 +220,10 @@ std::vector<Git::Branch> Git::getAllBranchesAndTags( RefType ref, const std::str
|
||||
}
|
||||
} );
|
||||
|
||||
std::sort( branches.begin(), branches.end(), []( const Branch& left, const Branch& right ) {
|
||||
return left.type < right.type || left.name < right.name;
|
||||
} );
|
||||
|
||||
return branches;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user