From 01801bb0e587ddd3ab576a70cdf3c5e801724d6a Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Thu, 28 May 2020 14:52:50 -0400 Subject: add git-ll-remote --- Makefile | 3 ++- src/git-ll-remote | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 src/git-ll-remote diff --git a/Makefile b/Makefile index e4109f0..063a4c2 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,8 @@ src_bin_programs = xorriso-usb.sh btrfs-functions.sh btrfs-receive-root.sh btrfs-send-root.sh var.sh grub-efi.sh keygen.sh initrd.sh qemu.sh \ dnsmasq-dhcp-script.sh samizdat-password-agent samizdat-gpg-agent publish-ip.sh \ selfstrap samizdat-daily-snapshot-root samizdat-diff-root kiki-export-stdout \ -kiki-import-stdin store-child-permanently samizdat-ssh-uid $(dyndns_progs) +kiki-import-stdin store-child-permanently samizdat-ssh-uid $(dyndns_progs) \ +git-ll-remote bin_programs=$(addprefix src/, $(src_bin_programs)) samizdat-paths.sh ${cc_files} ${btrfs_utils} diff --git a/src/git-ll-remote b/src/git-ll-remote new file mode 100755 index 0000000..4052a41 --- /dev/null +++ b/src/git-ll-remote @@ -0,0 +1,12 @@ +#!/bin/sh + +remote=${1:-origin} + +git ls-remote $remote | + + while read hash ref; do + case $ref in refs/namespaces/*) + git fetch $remote $ref; + git show $hash | sed '/^$/q';; + esac + done -- cgit v1.2.3