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

Re: cannot find hash in the log output

From
Jeff King <peff@peff.net>
Date
Dec 3, 2010, 17:52 UTC
Message-ID
<20101203175212.GA8267@sigill.intra.peff.net>
In-Reply-To
<AANLkTinAUfFge-AcfQevG2_9Gi3oOPy+-SrEZrfp4byn@mail.gmail.com>
On Fri, Dec 03, 2010 at 12:41:52PM -0500, Eugene Sajine wrote:
Show 13 quoted lines
> > yes. I do see it with your command.
> >
> > git ls-tree -r HEAD | grep <resulting SHA1 from git hash-object>
> >
> > Thanks,
> > Eugene
> >
> 
> While I'm able to see that object using the command Junio has provided
> the question remains the same:
> How could the file get into the state where its hash (git has-object
> file-name) cannot be found in any commit (git log --raw --no-abbrev |
> grep SHA1), if there was no local changes made to the file???

If the blob was created as the resolution of a merge conflict, I don't think that will appear in the output of "git log --raw".

-Peff
Previous: Eugene SajineNext: Eugene Sajine
Message 5 of 14 in “cannot find hash in the log output”
  1. Eugene SajineDec 2, 2010
  2. Junio C HamanoDec 2, 2010
  3. Eugene SajineDec 2, 2010
  4. Eugene SajineDec 3, 2010
  5. Jeff KingDec 3, 2010
  6. Eugene SajineDec 3, 2010
  7. Jonathan NiederDec 3, 2010
  8. Eugene SajineDec 3, 2010
  9. Jonathan NiederDec 3, 2010
  10. Eugene SajineDec 3, 2010
  11. Junio C HamanoDec 3, 2010
  12. Jonathan NiederDec 4, 2010
  13. Jeff KingDec 3, 2010
  14. Jeff KingDec 3, 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.