summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-05-28 14:52:50 -0400
committerAndrew Cady <d@jerkface.net>2020-05-28 14:52:50 -0400
commit01801bb0e587ddd3ab576a70cdf3c5e801724d6a (patch)
tree9489d33eb2d46eea269ded83769c36aa8052bcc9
parent7f6152b52f672b031083be0f3270e8f46aa53d97 (diff)
add git-ll-remote
-rw-r--r--Makefile3
-rwxr-xr-xsrc/git-ll-remote12
2 files changed, 14 insertions, 1 deletions
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
46btrfs-send-root.sh var.sh grub-efi.sh keygen.sh initrd.sh qemu.sh \ 46btrfs-send-root.sh var.sh grub-efi.sh keygen.sh initrd.sh qemu.sh \
47dnsmasq-dhcp-script.sh samizdat-password-agent samizdat-gpg-agent publish-ip.sh \ 47dnsmasq-dhcp-script.sh samizdat-password-agent samizdat-gpg-agent publish-ip.sh \
48selfstrap samizdat-daily-snapshot-root samizdat-diff-root kiki-export-stdout \ 48selfstrap samizdat-daily-snapshot-root samizdat-diff-root kiki-export-stdout \
49kiki-import-stdin store-child-permanently samizdat-ssh-uid $(dyndns_progs) 49kiki-import-stdin store-child-permanently samizdat-ssh-uid $(dyndns_progs) \
50git-ll-remote
50 51
51bin_programs=$(addprefix src/, $(src_bin_programs)) samizdat-paths.sh ${cc_files} ${btrfs_utils} 52bin_programs=$(addprefix src/, $(src_bin_programs)) samizdat-paths.sh ${cc_files} ${btrfs_utils}
52 53
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 @@
1#!/bin/sh
2
3remote=${1:-origin}
4
5git ls-remote $remote |
6
7 while read hash ref; do
8 case $ref in refs/namespaces/*)
9 git fetch $remote $ref;
10 git show $hash | sed '/^$/q';;
11 esac
12 done