Crates.io | oper |
lib.rs | oper |
version | 0.5.0 |
source | src |
created_at | 2019-08-03 22:14:09.620365 |
updated_at | 2022-11-20 19:00:15.178353 |
description | Command line tool to browse changes across multiple git repositories managed by google's git-repo tool |
homepage | |
repository | https://github.com/elektronenhirn/oper.git |
max_upload_size | |
id | 154025 |
size | 860,045 |
Oper is a basic history tool for git repositories managed by google's git-repo tool.
It can show a linear history across all managed git repositories.
Oper is inspired by tig, but is far for more basic.
Ubuntu releases are available here. After downloading the package which fits your ubuntu version you can install it with
sudo apt install ./<path-to-deb-file>
Oper is written in rust. You need the rust toolchain installed to be able to use it:
https://www.rust-lang.org/tools/install
Then you simply install oper with:
cargo install oper
Simply execute oper
in a folder which is managed by git-repo
.
For more advanced usage watch out for command line parameters:
--days
cli switch--author
or --message
cli switchesKeys in the UI:
j
(down) or k
(up)i
to inspect a change in gitk (you need to install gitk seperatly)q
You can run external executables on the currently selected commit. Running gitk with the key i is one example. You can add more custom commands on your own in oper's config file. The location of the config file depends on your operating system:
/Users/<username>/Library/Application Support/oper/config.toml
/home/<username>/.config/oper/config.toml
Here we define a custom command to run git show in a new terminal window:
# Execute git show in a seperate terminal window
[[custom_command]]
key = "d"
executable = "gnome-terminal"
args = "-- git show {}"
{}
in the args field is substituted by the ID of the selected commit.j
, k
and q
).