Skip to content

Commit 58c77b8

Browse files
committed
RevWalk
1 parent 31ff35a commit 58c77b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/haskell/Data/HGit2/Revwalk.chs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,7 @@ setSorting (RevWalk rfp) s =
100100

101101
-- | Return the repository on which this walker is operating.
102102
walkerRepo :: RevWalk -> IO Repository
103-
walkerRepo = undefined -- callRetCons {#call git_revwalk_repository#} Repository
103+
walkerRepo (RevWalk rfp) =
104+
withForeignPtr rfp $ \r -> do
105+
ptr <- mkFPtr =<< {#call git_revwalk_repository#} r
106+
return $ Repository ptr

0 commit comments

Comments
 (0)