File: playtree-save-refs

package info (click to toggle)
dgit 9.13
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,216 kB
  • sloc: perl: 11,829; sh: 5,208; makefile: 306; tcl: 69
file content (9 lines) | stat: -rwxr-xr-x 230 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#!/bin/bash
set -e
set -o pipefail
find -name .git -type d -exec sh -xec '
	cd "$1"
	git for-each-ref \
 --format='\''update refs/dgit-test-keep/g%(objectname) %(objectname)'\'' \
' x "{}" \; | \
	sort -u | git update-ref --stdin