### configuration ### # your git name. NAME=Nova # your git project path. eg: WORK_PATH="F:\Users\Nova\IdeaProjects\mhgu" WORK_PATH="F:\Users\Nova\IdeaProjects\mhgu" # start time is allowed to be null. eg: begin_time=2021-01-01 BEGIN_TIME= # end time is allowed to be null. eg: end_time=2022-04-01 END_TIME= # tag is allowed to be null, it will be used to search your commit message. eg: TAG="Equip Moudle" TAG=
functionGetFinalGitStr() { if [[ -n ${NAME} ]]; then GIT_STR="${GIT_STR}${PARAM_OPERATOR}${NAME_STR}" fi if [[ -n ${BEGIN_TIME} ]]; then GIT_STR="${GIT_STR}${PARAM_OPERATOR}${BEGIN_STR}" fi if [[ -n ${END_TIME} ]]; then GIT_STR="${GIT_STR}${PARAM_OPERATOR}${END_STR}" fi if [[ -n ${TAG} ]]; then GIT_STR="${GIT_STR}${PARAM_OPERATOR}${GREP_STR}" fi }