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
/** | |
* usage: groovy gittool.groovy path/to/parent_directory | |
* | |
* @author manhole | |
*/ | |
@Grapes([ | |
@Grab(group = 'joda-time', module = 'joda-time', version = '2.3') | |
,@Grab(group = 'ch.qos.logback', module = 'logback-core', version = '1.1.2') | |
,@Grab(group = 'ch.qos.logback', module = 'logback-classic', version = '1.1.2') | |
]) |
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
# gitへ変更した行数をカウントするスクリプト | |
# | |
# example: | |
# git log --since=2014-11-01 --committer=manhole --shortstat --ignore-all-space --no-merges | ruby git_count_changes.rb | |
# => commits=175, insertions=10350, deletions=1253 | |
# 各行の形式は... | |
# 10 files changed, 210 insertions(+), 19 deletions(-) | |
# 1 file changed, 5 insertions(+) | |
# 1 file changed, 50 deletions(-) |
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
// TMPを消す | |
groovy -e " new AntBuilder().delete(failonerror:false, verbose:true, dir:System.properties['java.io.tmpdir']) " |
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
○ 丸 | |
× 乗算記号 | |
✗ バツマーク 機種依存文字 | |
☓ 斜め十字 機種依存文字 | |
× 乗算記号 | |
✕ 乗算記号 機種依存文字 | |
○ 丸 | |
◯ 大きな丸 | |
△ さんかく |