Skip to content

Instantly share code, notes, and snippets.

View noahcampbell's full-sized avatar

Noah Campbell noahcampbell

View GitHub Profile
#!/bin/bash
# Requires: mktemp
PROG=`basename $0`
# defaults
SSH_USER=$(whoami)
WORKSPACE=$(mktemp -d /tmp/${PROG}-resources-$$)
VERBOSE=0
usage()
#!/usr/bin/perl
use strict;
use warnings;
my $branch = shift;
my $head = `git rev-list --date-order --max-count=1 $branch`;
my $svnrev = `git svn find-rev $head`;
my $diff = `git diff --find-copies-harder --no-prefix $branch`;
my $space = " ";
chomp $svnrev;