Git: Add gct, gcf and rework gcl.

This commit is contained in:
Dmitry Voronin 2024-11-18 19:51:35 +03:00
parent 6dcffac86f
commit 1e4d09af82
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -61,9 +61,19 @@
git commit -m "''${@}" git commit -m "''${@}"
} }
# Git clone (lazy!). # Git clone with tree filter.
function gct() {
git clone --filter tree:0 ''${@}
}
# Git clone full repo.
function gcf() {
git clone ''${@}
}
# Git clone latest commit only.
function gcl() { function gcl() {
git clone --filter tree:0 "''${@}" git clone --depth=1 --single-branch ''${@}
} }
# Git signed commit. # Git signed commit.