File: gitwash

package info (click to toggle)
cvs-fast-export 1.59-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,960 kB
  • sloc: ansic: 5,743; python: 1,391; sh: 532; lex: 352; yacc: 273; makefile: 249; perl: 99
file content (16 lines) | stat: -rwxr-xr-x 398 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# gitwash - accept a stream in fast order and canonicalize it.
#
# FIXME: stop deleting author and committer lines when we fix timezone screwage.
#
rm -fr /tmp/gitwash*
mkdir /tmp/gitwash$$
cd /tmp/gitwash$$ >/dev/null || ( echo "$0: cd failed"; exit 1 )

git init --quiet
git fast-import --quiet
git fast-export --all | sed -e '/author/d' -e '/committer/d'
rm -fr /tmp/gitwash$$

#end