@@ -659,6 +659,16 @@ static int get_sha1_1(const char *name, int len, unsigned char *sha1)
659
659
return get_short_sha1 (name , len , sha1 , 0 );
660
660
}
661
661
662
+ /*
663
+ * This interprets names like ':/Initial revision of "git"' by searching
664
+ * through history and returning the first commit whose message starts
665
+ * the given regular expression.
666
+ *
667
+ * For future extension, ':/!' is reserved. If you want to match a message
668
+ * beginning with a '!', you have to repeat the exclamation mark.
669
+ */
670
+ #define ONELINE_SEEN (1u<<20)
671
+
662
672
static int handle_one_ref (const char * path ,
663
673
const unsigned char * sha1 , int flag , void * cb_data )
664
674
{
@@ -674,19 +684,10 @@ static int handle_one_ref(const char *path,
674
684
if (object -> type != OBJ_COMMIT )
675
685
return 0 ;
676
686
insert_by_date ((struct commit * )object , list );
687
+ object -> flags |= ONELINE_SEEN ;
677
688
return 0 ;
678
689
}
679
690
680
- /*
681
- * This interprets names like ':/Initial revision of "git"' by searching
682
- * through history and returning the first commit whose message matches
683
- * the given regular expression.
684
- *
685
- * For future extension, ':/!' is reserved. If you want to match a message
686
- * beginning with a '!', you have to repeat the exclamation mark.
687
- */
688
-
689
- #define ONELINE_SEEN (1u<<20)
690
691
static int get_sha1_oneline (const char * prefix , unsigned char * sha1 )
691
692
{
692
693
struct commit_list * list = NULL , * backup = NULL , * l ;
0 commit comments