diff options
-rw-r--r-- | Makefile | 3 | ||||
-rwxr-xr-x | src/git-ll-remote | 12 |
2 files changed, 14 insertions, 1 deletions
@@ -46,7 +46,8 @@ src_bin_programs = xorriso-usb.sh btrfs-functions.sh btrfs-receive-root.sh | |||
46 | btrfs-send-root.sh var.sh grub-efi.sh keygen.sh initrd.sh qemu.sh \ | 46 | btrfs-send-root.sh var.sh grub-efi.sh keygen.sh initrd.sh qemu.sh \ |
47 | dnsmasq-dhcp-script.sh samizdat-password-agent samizdat-gpg-agent publish-ip.sh \ | 47 | dnsmasq-dhcp-script.sh samizdat-password-agent samizdat-gpg-agent publish-ip.sh \ |
48 | selfstrap samizdat-daily-snapshot-root samizdat-diff-root kiki-export-stdout \ | 48 | selfstrap samizdat-daily-snapshot-root samizdat-diff-root kiki-export-stdout \ |
49 | kiki-import-stdin store-child-permanently samizdat-ssh-uid $(dyndns_progs) | 49 | kiki-import-stdin store-child-permanently samizdat-ssh-uid $(dyndns_progs) \ |
50 | git-ll-remote | ||
50 | 51 | ||
51 | bin_programs=$(addprefix src/, $(src_bin_programs)) samizdat-paths.sh ${cc_files} ${btrfs_utils} | 52 | bin_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 | |||
3 | remote=${1:-origin} | ||
4 | |||
5 | git 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 | ||