Christian Couder <christian.couder@xxxxxxxxx> 于2021年7月12日周一 下午9:17写道: > > > +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