Skip to content

Instantly share code, notes, and snippets.

View yvvki's full-sized avatar
💢
correction

Yuuki Rika yvvki

💢
correction
View GitHub Profile
@yvvki
yvvki / makepkg
Last active February 19, 2025 12:38 — forked from andrewgregory/makepkg-shallow.sh
makepkg wrapper with git clone filter
#!/bin/bash
regex='(https?|file)://|(git@)'
git() {
if [[ $1 == 'clone' && $* =~ $regex ]]; then
/bin/git "$@" --filter=tree:0 # or blob:none
else
/bin/git "$@"
fi