소스 검색

sendmail: list commits in chronological order

tags/v0.8.0
James Moger 12 년 전
부모
커밋
0fb1fd48c4
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      groovy/sendmail.groovy

+ 3
- 3
groovy/sendmail.groovy 파일 보기

@@ -130,7 +130,7 @@ for (command in commands) {
switch (command.type) {
case ReceiveCommand.Type.CREATE:
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name)
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name).reverse()
commitCount += commits.size()
if (commits.size() > 0) {
// new branch
@@ -146,7 +146,7 @@ for (command in commands) {
}
break
case ReceiveCommand.Type.UPDATE:
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name)
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name).reverse()
commitCount += commits.size()
// fast-forward branch commits table
changes += "$branchBreak $ref branch updated ($commits.size commits)\n$branchBreak"
@@ -154,7 +154,7 @@ for (command in commands) {
changes += '\n'
break
case ReceiveCommand.Type.UPDATE_NONFASTFORWARD:
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name)
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name).reverse()
commitCount += commits.size()
// non-fast-forward branch commits table
changes += "$branchBreak $ref branch updated [NON fast-forward] ($commits.size commits)\n$branchBreak"

Loading…
취소
저장