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

Re: calculating a git packfile sha1 checksum in java

From
Nicolas Pitre <nico@fluxnic.net>
Date
Mar 22, 2011, 21:10 UTC
Message-ID
<alpine.LFD.2.00.1103221708370.11889@xanadu.home>
In-Reply-To
<1300827506173-6197923.post@n2.nabble.com>
On Tue, 22 Mar 2011, madmarcos wrote:
> Hi Shawn,
> Thanks for the response!
> I looked at the JGit API. will it allow me to read a packfile, alter its
> contents, and repack it?

Why would you want to do that? Altering a pack file in place is not a trivial affair. There is also the corresponding pack index which has to be rebuilt, etc.

Nicolas
Previous: madmarcos
Message 4 of 4 in “calculating a git packfile sha1 checksum in java”
  1. madmarcosMar 22, 2011
  2. Shawn PearceMar 22, 2011
  3. madmarcosMar 22, 2011
  4. Nicolas PitreMar 22, 2011

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.