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

Re: [JGIT PATCH 1/2] Ensure that a PackFile instance stays invalid when overwritten

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
May 3, 2009, 08:05 UTC
Message-ID
<200905031005.57638.robin.rosenberg.lists@dewire.com>
In-Reply-To
<1241296230-19342-1-git-send-email-spearce@spearce.org>
Show 6 quoted lines
> @@ -339,6 +351,8 @@ synchronized boolean endWindowCache() {
>  
>  	private void doOpen() throws IOException {
>  		try {
> +			if (invalid)
> +				throw new PackMismatchException("Pack checksum mismatch");

That /may/ be the case. We no longer know why the index failed to open. One way is to save the reason, the other is not to be so d** sure and use a less specific message.

-- robin
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 5 of 6 in “Ensure that a PackFile instance stays invalid when overwritten”
  1. 1/2 Ensure that a PackFile instance stays invalid when overwrittenShawn O. Pearce, May 2, 2009
  2. 2/2 Correct Javadoc comment for TransportLocal about forkingShawn O. Pearce, May 2, 2009
  3. Robin RosenbergMay 3, 2009
  4. Shawn O. PearceMay 4, 2009
  5. Robin RosenbergMay 3, 2009
  6. 1/2 Ensure that a PackFile instance stays invalid when overwrittenShawn O. Pearce, May 4, 2009

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.