@@ -1906,47 +1906,42 @@ public static unsafe void git_reference_ensure_log(RepositoryHandle repo, string
19061906
19071907 #region git_reflog_
19081908
1909- public static void git_reflog_free ( IntPtr reflog )
1909+ public static unsafe ReflogHandle git_reflog_read ( RepositoryHandle repo , string canonicalName )
19101910 {
1911- NativeMethods . git_reflog_free ( reflog ) ;
1912- }
1913-
1914- public static unsafe ReflogSafeHandle git_reflog_read ( RepositoryHandle repo , string canonicalName )
1915- {
1916- ReflogSafeHandle reflog_out ;
1911+ git_reflog * reflog_out ;
19171912
19181913 int res = NativeMethods . git_reflog_read ( out reflog_out , repo , canonicalName ) ;
19191914 Ensure . ZeroResult ( res ) ;
19201915
1921- return reflog_out ;
1916+ return new ReflogHandle ( reflog_out , true ) ;
19221917 }
19231918
1924- public static int git_reflog_entrycount ( ReflogSafeHandle reflog )
1919+ public static unsafe int git_reflog_entrycount ( ReflogHandle reflog )
19251920 {
19261921 return ( int ) NativeMethods . git_reflog_entrycount ( reflog ) ;
19271922 }
19281923
1929- public static ReflogEntrySafeHandle git_reflog_entry_byindex ( ReflogSafeHandle reflog , int idx )
1924+ public static unsafe git_reflog_entry * git_reflog_entry_byindex ( ReflogHandle reflog , int idx )
19301925 {
19311926 return NativeMethods . git_reflog_entry_byindex ( reflog , ( UIntPtr ) idx ) ;
19321927 }
19331928
1934- public static unsafe ObjectId git_reflog_entry_id_old ( SafeHandle entry )
1929+ public static unsafe ObjectId git_reflog_entry_id_old ( git_reflog_entry * entry )
19351930 {
19361931 return ObjectId . BuildFromPtr ( NativeMethods . git_reflog_entry_id_old ( entry ) ) ;
19371932 }
19381933
1939- public static unsafe ObjectId git_reflog_entry_id_new ( SafeHandle entry )
1934+ public static unsafe ObjectId git_reflog_entry_id_new ( git_reflog_entry * entry )
19401935 {
19411936 return ObjectId . BuildFromPtr ( NativeMethods . git_reflog_entry_id_new ( entry ) ) ;
19421937 }
19431938
1944- public static unsafe Signature git_reflog_entry_committer ( SafeHandle entry )
1939+ public static unsafe Signature git_reflog_entry_committer ( git_reflog_entry * entry )
19451940 {
19461941 return new Signature ( NativeMethods . git_reflog_entry_committer ( entry ) ) ;
19471942 }
19481943
1949- public static string git_reflog_entry_message ( SafeHandle entry )
1944+ public static unsafe string git_reflog_entry_message ( git_reflog_entry * entry )
19501945 {
19511946 return NativeMethods . git_reflog_entry_message ( entry ) ;
19521947 }
0 commit comments