func forgetContents(t *testing.T, env *testenv.CLITest, contentIDs ...string) {
	t.Helper()

	before := mustGetContentMap(t, env)

	env.RunAndExpectSuccess(t, append([]string{"content", "rewrite", "--safety=none"}, contentIDs...)...)

	after := mustGetContentMap(t, env)

	var blobIDs []string

	for _, cidStr := range contentIDs {
		cid, err := content.ParseID(cidStr)
		require.NoError(t, err)
		require.NotEqual(t, before[cid].PackBlobID, after[cid].PackBlobID)
		blobIDs = append(blobIDs, string(after[cid].PackBlobID))
	}

	env.RunAndExpectSuccess(t, append([]string{"blob", "rm"}, blobIDs...)...)
}
// forgetContents rewrites contents into a new blob and deletes the blob
// making index entries dangling.
forgetContents rewrites contents into a new blob and deletes the blob
making index entries dangling.
// forgetContents rewrites contents into a new blob and deletes the blob // making index entries dangling .
func forgetContents(t *testing.T, env *testenv.CLITest, contentIDs ...string) {
	t.Helper()
	before := mustGetContentMap(t, env)
	env.RunAndExpectSuccess(t, append([]string{"content", "rewrite", "--safety=none"}, contentIDs...)...)
	after := mustGetContentMap(t, env)
	var blobIDs []string
	for _, cidStr := range contentIDs {
		cid, err := content.ParseID(cidStr)
		require.NoError(t, err)
		require.NotEqual(t, before[cid].PackBlobID, after[cid].PackBlobID)
		blobIDs = append(blobIDs, string(after[cid].PackBlobID))
	}
	env.RunAndExpectSuccess(t, append([]string{"blob", "rm"}, blobIDs...)...)
}
func forgetContents ( t * testing . T , env * testenv . CLITest , contentIDs ... string ) { t . Helper ( ) before := mustGetContentMap ( t , env ) env . RunAndExpectSuccess ( t , append ( [ ] string { " " , " " , " " } , contentIDs ... ) ... ) after := mustGetContentMap ( t , env ) var blobIDs [ ] string for _ , cidStr := range contentIDs { cid , err := content . ParseID ( cidStr ) require . NoError ( t , err ) require . NotEqual ( t , before [ cid ] . PackBlobID , after [ cid ] . PackBlobID ) blobIDs = append ( blobIDs , string ( after [ cid ] . PackBlobID ) ) } env . RunAndExpectSuccess ( t , append ( [ ] string { " " , " " } , blobIDs ... ) ... ) }
forgetContents rewrites contents into a new blob and deletes the blob
making index entries dangling.
forgetContents rewrites contents into a new blob and deletes the blob making index entries dangling .