Git Panel WIP.

This commit is contained in:
Martín Lucas Golini
2024-01-14 19:08:13 -03:00
parent 698af65045
commit 4a0533c28a
11 changed files with 245 additions and 67 deletions

View File

@@ -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;
}