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

integrity of a repository

From
RWRalf Wildenhues <ralf.wildenhues@gmx.de>
Date
Mar 15, 2008, 13:26 UTC
Message-ID
<20080315132645.GC17579@ins.uni-bonn.de>
Hello giters,

I am aware that git provides integrity of a commit (and thus, a branch head) via its sha, which covers both the tree and its history.

But what about the integrity of a git repository as a whole?
For example, if I have a set of branches, create a file listing
  branchname  sha-of-head

for each such branch, and hash that file, and also 'git gc --prune', can I then be sure that not only does the repository contain exactly what I want (namely all history of all branches), but also that it does not contain any other material (say, stuff that may not be disclosed)?

Would I need the in file listing all local and remote branches? What about all heads in .git/*HEAD (such as FETCH_HEAD)?

Thanks, Ralf

Next: Junio C Hamano
Message 1 of 5 in “integrity of a repository”
  1. Ralf WildenhuesMar 15, 2008
  2. Junio C HamanoMar 16, 2008
  3. Ralf WildenhuesMar 16, 2008
  4. Junio C HamanoMar 16, 2008
  5. Ralf WildenhuesMar 16, 2008

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.