Re: [PATCH 14/19] [GSOC] cat-file: reuse ref-filter logic
- From
ZheNing Hu <adlternative@gmail.com>
- Date
- Jul 15, 2021, 14:55 UTC
- Message-ID
- <CAOLTT8SLMptcGf1mKtumVTAXdD5_qygeohtXvbCUuj39MOJ0yA@mail.gmail.com>
- In-Reply-To
- <CAP8UFD0vHw8cK90RbOUcrAcxNKiHVTMX0VEiK8+MNyHH0CNm4A@mail.gmail.com>
Christian Couder <christian.couder@gmail.com> 于2021年7月12日周一 下午9:17写道:
Show 16 quoted lines
> > > +test_expect_success 'cat-file --batch equals to --batch-check with atoms' ' > > + git cat-file --batch-check="%(objectname) %(objecttype) %(objectsize) > > +%(raw)" >expected <<-EOF && > > + refs/heads/main > > + refs/tags/testtag > > + EOF > > + git cat-file --batch >actual <<-EOF && > > + refs/heads/main > > + refs/tags/testtag > > + EOF > > + cmp expected actual > > +' > > I also wonder if the above new test belong to this commit or if it > could be moved to a previous commit.
It's relate to %(raw), but cat-file don't realize %(raw) before. So the location of this test should remain unchanged.
-- ZheNing Hu