bonfire/bin/gitinfo

10 lines
212 B
Plaintext
Raw Normal View History

2023-06-06 23:18:09 +05:00
#!/usr/bin/env cached-nix-shell
#! nix-shell -p nix-prefetch-git -i bash
for repo in $@; do
if [[ "$repo" != https://* ]]; then
repo="https://github.com/$repo"
fi
nix-prefetch-git --quiet "$repo"
done