This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Inspired by http://blog.neutrino.es/2012/git-copy-a-file-or-directory-from-another-repository-preserving-history/ | |
#Copy a file or directory out of a git repository, preserving history! | |
#Creates DESTINATIONPATH with patches that can be applied with git am | |
#e.g. | |
#0001-Add-new-theme-Gum.patch | |
#0002-Add-syntax-highlighting-for-Gum-theme.patch | |
#0003-Gum-Fix-tag-URLs-not-being-slugified-and-therefore-b.patch | |
#0004-Gum-Add-Disqus-support.patch | |
#0005-Gum-Use-article-title-as-the-title-of-the-generated-.patch |