diff --git a/home/program/bash/module/Git.nix b/home/program/bash/module/Git.nix index 3f8d77dd..6226772f 100644 --- a/home/program/bash/module/Git.nix +++ b/home/program/bash/module/Git.nix @@ -61,9 +61,19 @@ 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() { - git clone --filter tree:0 "''${@}" + git clone --depth=1 --single-branch ''${@} } # Git signed commit.