git : add ggc.

This commit is contained in:
Dmitry Voronin 2023-12-06 22:50:30 +03:00
parent 4cdb99fd6d
commit cf121cd31b
3 changed files with 7 additions and 1 deletions

View file

@ -534,6 +534,7 @@ Command|Description
`gr [COUNT]`|Git rebase. 2 last commits by default. 0 means from root.
`gu <EMAIL>`|Configure git user as Dmitry Voronin with specified email (project).
`gg <REPO>`|Get git repo from my own git.
`ggc`|Run git garbage collection.
## Ls.

View file

@ -18,6 +18,11 @@ alias gi="git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached"
alias gpc="git diff >"
alias gp="git apply"
# Run git garbage collection.
ggc() {
git gc --aggressive --no-cruft --prune=now
}
# alias to preview diff while adding. adds current dir by default.
# usage: ga [FILES]
ga() {

View file

@ -1,5 +1,5 @@
[Context]
filesystems=!xdg-download;~/.config/MangoHud:ro;~/media/bottle;/var/mnt/storage/cold_1/tmp:ro;/var/mnt/storage/hot/media/bottle;/var/mnt/storage/hot/media/game;~/download:ro;/var/mnt/storage/cold_1/media/game/:ro
filesystems=!xdg-download;/var/mnt/storage/hot/media/save;/var/mnt/storage/cold_1/media/game/:ro;~/download:ro;/var/mnt/storage/hot/media/game;/var/mnt/storage/hot/media/bottle;/var/mnt/storage/cold_1/tmp:ro;~/media/bottle;~/.config/MangoHud:ro
[Environment]
MANGOHUD=1