Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 984b43a

Browse files
author
Lennon Day-Reynolds
committed
fix ordering of revisions in call to git-diff
1 parent cc9e836 commit 984b43a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/scm/adapters/git/patch.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module Scm::Adapters
22
class GitAdapter < AbstractAdapter
33
def patch_for_commit(commit)
4-
parents_tokens(commit).map {|token|
5-
run("cd #{url} && git diff #{commit.token} #{token}")
4+
parent_tokens(commit).map {|token|
5+
run("cd #{url} && git diff #{token} #{commit.token}")
66
}.join("\n")
77
end
88
end

0 commit comments

Comments
 (0)