diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-05 14:51:41 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-05 14:51:41 -0400 |
commit | fd4246e5df01fd75fd416cbdeb0ae7072d2112de (patch) | |
tree | 689a3ab1249dc4c1164f9ebe02cd01be9f2d99de /dot/local | |
parent | f03adf82f0893630f8e4340435e274ac6413b625 (diff) |
git-ll-remote
Diffstat (limited to 'dot/local')
-rwxr-xr-x | dot/local/bin/git-ll-remote | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dot/local/bin/git-ll-remote b/dot/local/bin/git-ll-remote new file mode 100755 index 0000000..4052a41 --- /dev/null +++ b/dot/local/bin/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 | ||