remove defunct "Changes" file step from RMG
[p5sagit/p5-mst-13.2.git] / Porting / git-make-p4-refs
CommitLineData
5abd40ff 1#!/bin/sh
2
3# this script creates a tag for every p4raw-id
4# the output can be appended to .git/packed-refs, but make sure to back up
5# first
6
7# then you can do:
8
9# git show perl@1234 where 1234 is a perforce change, and 'perl' is the p4
10# depot
11
12git log -z -F --grep='p4raw-id:' --pretty='format:%H %b' | \
13perl -0ne 'chomp; if ( @t = m{([a-f0-9]{40}).*?p4raw-id: //depot/(.*?\@\d+)}s ) { print "@t\n" }'