Skip to content

Instantly share code, notes, and snippets.

View fashioncj's full-sized avatar
💰
Salary Oriented Programming

Jia Chen fashioncj

💰
Salary Oriented Programming
View GitHub Profile
@fashioncj
fashioncj / repo-apply.sh
Created June 13, 2016 15:05 — forked from gipi/repo-apply.sh
Split a patch created with repo diff in a set of usable patches
#!/bin/sh
## Script to patch up diff reated by `repo diff`
# from https://groups.google.com/d/msg/repo-discuss/43juvD1qGIQ/7maptZVcEjsJ
if [ -z "$1" ] || [ ! -e "$1" ]; then
echo "Usages: $0 <repo_diff_file>";
exit 0;
fi
rm -fr _tmp_splits*