@@ -50,7 +50,7 @@ static void test_id_inrepo(
5050 const char * spec ,
5151 const char * expected_left ,
5252 const char * expected_right ,
53- git_revparse_mode_t expected_flags ,
53+ git_revspec_t expected_flags ,
5454 git_repository * repo )
5555{
5656 git_revspec revspec ;
@@ -90,7 +90,7 @@ static void test_object_and_ref(const char *spec, const char *expected_oid, cons
9090static void test_rangelike (const char * rangelike ,
9191 const char * expected_left ,
9292 const char * expected_right ,
93- git_revparse_mode_t expected_revparseflags )
93+ git_revspec_t expected_revparseflags )
9494{
9595 char objstr [64 ] = {0 };
9696 git_revspec revspec ;
@@ -117,7 +117,7 @@ static void test_id(
117117 const char * spec ,
118118 const char * expected_left ,
119119 const char * expected_right ,
120- git_revparse_mode_t expected_flags )
120+ git_revspec_t expected_flags )
121121{
122122 test_id_inrepo (spec , expected_left , expected_right , expected_flags , g_repo );
123123}
@@ -735,53 +735,53 @@ void test_refs_revparse__range(void)
735735 test_rangelike ("be3563a^1..be3563a" ,
736736 "9fd738e8f7967c078dceed8190330fc8648ee56a" ,
737737 "be3563ae3f795b2b4353bcce3a527ad0a4f7f644" ,
738- GIT_REVPARSE_RANGE );
738+ GIT_REVSPEC_RANGE );
739739
740740 test_rangelike ("be3563a^1...be3563a" ,
741741 "9fd738e8f7967c078dceed8190330fc8648ee56a" ,
742742 "be3563ae3f795b2b4353bcce3a527ad0a4f7f644" ,
743- GIT_REVPARSE_RANGE | GIT_REVPARSE_MERGE_BASE );
743+ GIT_REVSPEC_RANGE | GIT_REVSPEC_MERGE_BASE );
744744
745745 test_rangelike ("be3563a^1.be3563a" , NULL , NULL , 0 );
746746}
747747
748748void test_refs_revparse__parses_range_operator (void )
749749{
750- test_id ("HEAD" , "a65fedf39aefe402d3bb6e24df4d4f5fe4547750" , NULL , GIT_REVPARSE_SINGLE );
750+ test_id ("HEAD" , "a65fedf39aefe402d3bb6e24df4d4f5fe4547750" , NULL , GIT_REVSPEC_SINGLE );
751751 test_id ("HEAD~3..HEAD" ,
752752 "4a202b346bb0fb0db7eff3cffeb3c70babbd2045" ,
753753 "a65fedf39aefe402d3bb6e24df4d4f5fe4547750" ,
754- GIT_REVPARSE_RANGE );
754+ GIT_REVSPEC_RANGE );
755755
756756 test_id ("HEAD~3...HEAD" ,
757757 "4a202b346bb0fb0db7eff3cffeb3c70babbd2045" ,
758758 "a65fedf39aefe402d3bb6e24df4d4f5fe4547750" ,
759- GIT_REVPARSE_RANGE | GIT_REVPARSE_MERGE_BASE );
759+ GIT_REVSPEC_RANGE | GIT_REVSPEC_MERGE_BASE );
760760
761761 test_id ("HEAD~3.." ,
762762 "4a202b346bb0fb0db7eff3cffeb3c70babbd2045" ,
763763 "a65fedf39aefe402d3bb6e24df4d4f5fe4547750" ,
764- GIT_REVPARSE_RANGE );
764+ GIT_REVSPEC_RANGE );
765765
766766 test_id ("HEAD~3..." ,
767767 "4a202b346bb0fb0db7eff3cffeb3c70babbd2045" ,
768768 "a65fedf39aefe402d3bb6e24df4d4f5fe4547750" ,
769- GIT_REVPARSE_RANGE | GIT_REVPARSE_MERGE_BASE );
769+ GIT_REVSPEC_RANGE | GIT_REVSPEC_MERGE_BASE );
770770
771771 test_id ("..HEAD~3" ,
772772 "a65fedf39aefe402d3bb6e24df4d4f5fe4547750" ,
773773 "4a202b346bb0fb0db7eff3cffeb3c70babbd2045" ,
774- GIT_REVPARSE_RANGE );
774+ GIT_REVSPEC_RANGE );
775775
776776 test_id ("...HEAD~3" ,
777777 "a65fedf39aefe402d3bb6e24df4d4f5fe4547750" ,
778778 "4a202b346bb0fb0db7eff3cffeb3c70babbd2045" ,
779- GIT_REVPARSE_RANGE | GIT_REVPARSE_MERGE_BASE );
779+ GIT_REVSPEC_RANGE | GIT_REVSPEC_MERGE_BASE );
780780
781781 test_id ("..." ,
782782 "a65fedf39aefe402d3bb6e24df4d4f5fe4547750" ,
783783 "a65fedf39aefe402d3bb6e24df4d4f5fe4547750" ,
784- GIT_REVPARSE_RANGE | GIT_REVPARSE_MERGE_BASE );
784+ GIT_REVSPEC_RANGE | GIT_REVSPEC_MERGE_BASE );
785785
786786 test_invalid_revspec (".." );
787787}
0 commit comments