About a month ago I published the initial version of git-lab, a command line client for GitLab. Lots of new features have been added since then, and I hope you’ll find them useful. Tobias Fella and especially Benjamin Port joined and brought this project forward.
Benjamin Port refactored the command line interface to be more familiar to GitLab users, while keeping support for an arcanist-like cli. This means you can now use
git lab mrinstead of
git lab checkoutinstead of the diff and patch commands known from arc if you like.
For more arc compatibility, there is now a
git lab featurecommand for switching and creating branches. It does the same as
git checkout -b, so if you didn’t previously use arc you can probably ignore it :)
A project search has been added to easily find the repository you want to clone. You can find it as
git lab search. One limitation is that you currently need to run it in an existing repository, as that’s the currently used way to detect the GitLab instance. In the future I plan to make it search all known instances.
Images can now be directly uploaded and embedded in merge request descriptions from the command line. Simply reference local images using markdown syntax when writing the description of your merge request, and the images will be uploaded and embedded
Less special, merge requests can now be opened against other branches than master, as supported by the GitLab web interface.
Tobias Fella implemented additional options to filter merge requests in
git lab mrs. You can now filter them by state, by simple passing
A fork command has been added for managing forks without creating a merge request right away. If you use
git lab mr, you won’t need to use this command, but if you prefer the more traditional way of pushing to the remote manually and clicking the link, you can now do that.
forkremote, which is managed by git-lab and used to create merge requests, now uses ssh. This means that using git-lab requires a valid ssh key in your user settings.
Benjamin Port implemented an
issuessubcommand, which allows you to keep track of issues you opened to remind yourself of implementing certain features or fixing bugs. Similar to
git lab mrs, it can filter issues by their state.
snippetsubcommand has been added that allows easy pasting from the command line. It can either upload files or upload text piped into the
git lab snippetcommand. There is a
pastealias for it that should be more familiar to arc users.
If you want to try git-lab, you can install the current state using pip.
pip3 install git+https://invent.kde.org/jbbgameich/git-lab
Once git-lab is more feature complete, I’ll consider publishing versioned packages.
As git-lab is still pre-release software under development, it is especially helpful if you report bugs, they happen! Or even better, if you want to implement a feature that is still missing, please submit a merge request to the repository, maybe even using
git lab mr :)