SUBVERSION SVN COMMIT 2016/01/29
SUBVERSION HACKS ▸ … ▸ ▸ ▸ ( ) … 2
SUBVERSION HACKS 3
SUBVERSION HACKS … 4
SUBVERSION HACKS … 5
SUBVERSION HACKS ▸ SVN_EDITOR ▸ ▸ 1 ▸ ▸ --This line, and those below, will be ignored— ▸ 6
SUBVERSION HACKS ▸ SVN_EDITOR ▸ 
 ▸ ▸ 7
SUBVERSION HACKS #!/bin/sh mv "$1" “$1”.orig # # Hello, world! echo "n--This line, and those below, will be ignored--" > "$1" echo "Hello, world!" >> “$1” # cat "$1".orig >> "$1" rm "$1".orig vi “$1" # exit 0 ~/tmp/commit.sh 8
SUBVERSION HACKS --This line, and those below, will be ignored-- Hello, world! --This line, and those below, will be ignored-- M myfile (SVN_EDITOR=~/tmp/commit.sh svn commit ) 9
SUBVERSION HACKS % svn log ------------------------------------------------------------------------ r4 | XXXXX | 2016-01-23 14:02:30 +0900 ( , 23 1 2016) | 2 lines ------------------------------------------------------------------------ : (SVN_EDITOR=~/tmp/commit.sh svn commit ) 
 10
▸ 11
SUBVERSION HACKS #!/bin/sh echo "num args: $#" for arg in $@; do echo "-----" echo $arg done mv "$1" "$1".orig # cat <<'_EOT_' > "$1" --This line, and those below, will be ignored-- fix, add, change commit - Fix typo in docs - Remove unused code - Remove use of deprecated method - Update Modernizr to v1.6 - Make it possible to have IDs per request - Make sure to reset default_url_options - Don't use "assert_not_nil" - Allow the user to drag faster - Remove methods to avoid warnings. --- _EOT_ # 3 ( ) tail -n +3 "$1".orig >> "$1" rm "$1".orig # vi "$1" exit 0 http://qiita.com/sagaraya/items/60e983856e16dc571f22 12
13
14
LGTM 14
… 15
WINDOWS… 16
WINDOWS… 16
SUBVERSION HACKS HOW ABOUT TORTOISE_SVN ? ▸ TortoiseSVN ▸ tsvn:logtemplate or other ▸ … 17
SUBVERSION HACKS HOW ABOUT TORTOISE_SVN ? ▸ 
 [SVN Properties…]
 →[New]
 →[Other] ▸ tsvn:logtemplate ▸ 18
SUBVERSION HACKS HOW ABOUT TORTOISE_SVN? 19
SUBVERSION HACKS “TSVN:LOGTEMPLATE” PROS VS CONS ▸ PROS. ▸ ▸ ▸ CONS. ▸ ▸ —This line, and those below, will be ignored— ▸ %APPDATA%TortoiseSVN autolist.txt & snippet.txt … 20
SUBVERSION HACKS ▸ ▸ 21
22

subversion hacks (create a commit template)