Skip to content

Instantly share code, notes, and snippets.

View mioyasuaki's full-sized avatar

Yasuaki Mio mioyasuaki

View GitHub Profile
@hokaccha
hokaccha / git-export-diff
Created September 22, 2012 02:14
gitの差分のファイルをつくる
#!/bin/sh
set -e
if [ $# -ne 2 -a $# -ne 3 ]; then
echo 'Usage:'
echo ' $ git export-diff <commit> <output_dir>'
echo ' $ git export-diff <commit> <commit> <output_dir>'
exit 1
fi
@fetus-hina
fetus-hina / mb_str_replace.function.php
Created November 29, 2011 11:18
mb_str_replace() 説明ページ表示用ソース(リリースソース)
<?php
/*
* マルチバイト対応 str_replace()
*
* Release 3 update 1
*
* Copyright (C) 2006,2007,2011,2012 by HiNa <[email protected]>. All rights reserved.
*
* LICENSE
*
@func09
func09 / git-diff-zip.sh
Created October 29, 2011 06:24
Gitで特定のコミットからの差分ファイルだけ抜き出してZipにする
git archive --format=zip --prefix=projectname/ HEAD `git diff --name-only <commit>` -o archive.zip