This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change preferred email for Shirakata Kentaro
[perl5.git] / Porting / git-make-p4-refs
CommitLineData
5abd40ff
YK
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" }'