dg

Crates.iodg
lib.rsdg
version1.1.0
sourcesrc
created_at2023-05-20 15:23:01.222447
updated_at2023-05-20 15:23:01.222447
descriptiondg - find dirty git repos recursively
homepage
repositoryhttps://github.com/jondot/dg
max_upload_size
id869490
size59,424
Dotan J. Nahum (jondot)

documentation

https://docs.rs/dg/

README

dg - find dirty git repos

Ever forgot to push a commit or lost your work because you assumed it was pushed to Github but it wasn't?

dg finds local git repos with pending changes, un-added files, branches that are completely new, and branches that were not pushed upstream.

Run it before you go on holiday 🎃, or every month just to check that you're not forgetting anything 📅.

$ dg -b
┌───────────────────────┬──────────────┬────────┬──────────────────────┐
│ repository            │ changes      │ ahead  │ missing              │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./logolang.org        │              │        │ master               │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./init-tslib          │              │        │ master               │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./sqlx-crud           │ •••••••••••• │        │                      │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./interactive-actions │              │        │ master               │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./sign-rs             │              │        │ master               │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./teller-docs         │ •••          │        │ adding-styling-fwks, │
│                       │              │        │  master,             │
│                       │              │        │ switch-to-theme-ui   │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./init-rs             │              │        │ implement-eject,     │
│                       │              │        │ master, simplified   │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./foobar3             │ •••          │        │                      │
├───────────────────────┼──────────────┼────────┼──────────────────────┤
│ ./pattern_match       │ ••••••       │        │ master               │
└───────────────────────┴──────────────┴────────┴──────────────────────┘

For example - this discovered that I have local changes on sqlx-crud, and that teller-docs contains branches that I created locally but never pushed.

Download

$ brew tap jondot/tap && brew install dg

Otherwise, grab a release from releases.

Usage

Usage: dg [-b] [-p <path>]

dg: find dirty local Git repos with pending changes or unpushed content

Options:
  -b, --branches    include analysis for local branches
  -p, --path        root path (default ".")
  --help            display usage information
  -V, --version     print version information and exit

Contributing

We are accepting PRs. Feel free to submit PRs.

To all Contributors - you make this happen, thanks!

License

Copyright (c) 2023 @jondot. See LICENSE for further details.

Commit count: 9

cargo fmt