@echo
set sincedate="2016-04-28 00:00:01" ::变量
set beforedate="2016-04-29 00:00:01"
call:gitlog server ::说明:将入参
:gitlog :: 定义函数名
cd %1 ::说明:获取到第一个入参
git log --pretty=oneline --since=%sincedate% --before=%beforedate% >> ../gitlog.txt
cd ..
goto:eof ::函数结尾
@pause