Crates.io | git-projects |
lib.rs | git-projects |
version | 0.1.0 |
source | src |
created_at | 2024-09-18 08:19:32.328531 |
updated_at | 2024-09-18 08:19:32.328531 |
description | A program to see the state of git projects on a system |
homepage | https://gitlab.com/johngavingraham/git-projects |
repository | https://gitlab.com/johngavingraham/git-projects.git |
max_upload_size | |
id | 1378971 |
size | 37,732 |
See the state of git projects on a system.
It shows you whether your current repo has any diffs, and whether
local branches are ahead of/behind their remote counterparts. By
default it doesn't do a fetch first, but you can ask it to by
specifying --fetch
.
N.B. This is a very young project, but the basic functionality is enough to be useful.
$ cargo install git-projects
~/.git-projects.toml
, with the projects you want to
monitor. Tilde and environment expansions are allowed, according to
[shellexpand::full()]:repos = [
"/usr/local/whatever",
"~/src/another/",
]
If git-projects
sees a .git-projects.toml
file in the current
directory, that will override the one found in ~/
.
git-projects
to see the current state of those projects:/usr/local/whatever:
main: Behind 95
my-local-branch: Behind 3
~/src/another/:
2 diffs
main: Behind 1
git-projects --fetch
to do a git --fetch
on those projects
before showing their state.