git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] pack-bitmap: gracefully handle missing BTMP chunks

From
Patrick Steinhardt <ps@pks.im>
Date
Apr 16, 2024, 05:14 UTC
Message-ID
<Zh4JGJm6cYFjk4x_@tanuki>
In-Reply-To
<20240416051232.GA1745631@coredump.intra.peff.net>
On Tue, Apr 16, 2024 at 01:12:32AM -0400, Jeff King wrote:
Show 17 quoted lines
> On Tue, Apr 16, 2024 at 06:47:51AM +0200, Patrick Steinhardt wrote:
> 
> > > > +			GIT_TEST_MIDX_READ_BTMP=false git -c pack.allowPackReuse=$allow_pack_reuse \
> > > > +				pack-objects --all --use-bitmap-index --stdout </dev/null >/dev/null 2>err &&
> > > 
> > > A small note here, but setting stdin to read from /dev/null is
> > > unnecessary with `--all.`
> > 
> > Is it really? Executing `git pack-objects --all --stdout` on my system
> > blocks until stdin is closed. It _seems_ to work in the tests alright,
> > but doesn't work outside of them. Which is puzzling on its own.
> 
> Inside a test_expect block, stdin is already redirected from /dev/null.
> See 781f76b158 (test-lib: redirect stdin of tests, 2011-12-15).
> 
> I do think it's still good practice to redirect from /dev/null
> explicitly to indicate the intent.
Ah, that explains. Thanks!
Patrick
Previous: Jeff King
Message 13 of 13 in “pack-bitmap: gracefully handle missing BTMP chunks”
  1. pack-bitmap: gracefully handle missing BTMP chunksPatrick Steinhardt, Apr 9, 2024
  2. Taylor BlauApr 10, 2024
  3. Patrick SteinhardtApr 15, 2024
  4. Taylor BlauApr 15, 2024
  5. pack-bitmap: gracefully handle missing BTMP chunksPatrick Steinhardt, Apr 15, 2024
  6. Patrick SteinhardtApr 15, 2024
  7. Junio C HamanoApr 15, 2024
  8. Taylor BlauApr 15, 2024
  9. Junio C HamanoApr 15, 2024
  10. Taylor BlauApr 15, 2024
  11. Patrick SteinhardtApr 16, 2024
  12. Jeff KingApr 16, 2024
  13. Patrick SteinhardtApr 16, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.