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

Re: BUG! missing .idx causes .pack to be removed

From
EWEnrico Weigelt <weigelt@metux.de>
Date
Aug 13, 2010, 16:02 UTC
Message-ID
<20100813160221.GA10974@nibiru.local>
In-Reply-To
<4C5BB64A.4070601@lsrfire.ath.cx>
* René Scharfe <rene.scharfe@lsrfire.ath.cx> wrote:
Show 5 quoted lines
> > IIRC, a .pack file is useless without its corresponding .idx file. So
> > the removal of a .pack file makes sense here - to me, at least.
> 
> git-index-pack can rebuild the index for a pack file.  Not sure if it
> should be done automagically, but the file is not completely useless.

ACK. packfiles are completely self-contained - the index files are only used for lookup and can be created any time (IMHO that's also done automatically on remote transfers). So removing a packfile, just because the index is missing, causes an serious data loss. That's what I'd consider a critical bug!

The correct solution would be either recreating the index automatically or at least spit out an big-fat warning.

cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
Previous: René Scharfe
Message 4 of 4 in “BUG! missing .idx causes .pack to be removed”
  1. Enrico WeigeltAug 5, 2010
  2. Tay Ray ChuanAug 6, 2010
  3. René ScharfeAug 6, 2010
  4. Enrico WeigeltAug 13, 2010

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.