1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
403b8a7e6c dotfiles: update git config
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-05-02 16:19:30 +03:00
8137c7efde zsh: git branch snippet 2025-05-02 16:13:31 +03:00
2 changed files with 6 additions and 1 deletions

View File

@@ -196,8 +196,9 @@ git_config() {
git config --unset gc.auto || : git config --unset gc.auto || :
git config --unset pull.ff || : git config --unset pull.ff || :
## size optimization ## size optimization
git config core.bigFileThreshold 64k
git config core.compression 9 git config core.compression 9
git config core.looseCompression 6 git config core.looseCompression 8
git config pack.compression 9 git config pack.compression 9
git config pack.threads 2 git config pack.threads 2
## generic ## generic

View File

@@ -62,3 +62,7 @@ git-archive-ref() {
git archive --format=tar -o "${topdir}/${out}" --prefix="${name}-${ver}-git.${c_hash}/" "${gitref}" || return $? git archive --format=tar -o "${topdir}/${out}" --prefix="${name}-${ver}-git.${c_hash}/" "${gitref}" || return $?
echo "archived to ${out} in ${topdir}/" >&2 echo "archived to ${out} in ${topdir}/" >&2
} }
git-br() {
__z_git -c core.pager='cat' branch --no-abbrev "$@"
}