{"thread":{"id":"62500","subject":"[BUG?] git rev-list --all --objects triggers fetches in partial clone","startedAt":"2024-11-15T20:51:27Z","lastAt":"2024-11-15T20:51:27Z","messageCount":1,"participants":["Philippe Blain"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"507377","messageId":"6b41b122-0657-00b2-d613-296354376026@gmail.com","threadId":"62500","inReplyTo":null,"subject":"[BUG?] git rev-list --all --objects triggers fetches in partial clone","fromName":"Philippe Blain","fromEmail":"levraiphilippeblain@gmail.com","sentAt":"2024-11-15T20:51:24Z","receivedAt":"2024-11-15T20:51:27Z","isPatch":false,"sender":{"key":"levraiphilippeblain@gmail.com","avatar":"https://avatars.githubusercontent.com/u/44212482?v=4"},"body":"Hi, \n\nI'm not sure if this is a bug, but I think this is not working \nas the documentation states (or, I do not understand the documentation!):\n\n\ngit clone --filter=blob:limit=250k git@github.com:git/git.git\ncd git \ngit rev-list --objects --all | \\\n  git cat-file --batch-check=’%(objecttype) %(objectname) %(objectsize) %(rest)’ | \\\n  sed -n ‘s/^blob //p’ | \\\n  sort --numeric-sort --reverse --key=2\n\nThe doc states that the default value for the --missing of 'git rev-list' is 'error',\nwhich \"requests that rev-list stop with an error if a missing object is encountered.\"\nThis is not what happens as each missing object is fetched one at a time.\n\nIf I use any other option for --missing (allow-any, allow-promisor, print) then\nno blobs are fetched. \n\nIs this working as intended ?  CC-ing a few people who I think\nworked on the partial clone feature.\n\nCheers,\nPhilippe.\n"}]}