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

Re: Finding list of commit object

From
Shawn Pearce <spearce@spearce.org>
Date
Mar 26, 2012, 16:03 UTC
Message-ID
<CAJo=hJsjRLZ4H7HU1DZrNSX5ouP73BJUkxtQm_7HaV8Xg07zzg@mail.gmail.com>
In-Reply-To
<BLU0-SMTP344C6638261C23F2023DD72B1450@phx.gbl>
On Mon, Mar 26, 2012 at 08:22, Anjib Mulepati <anjibcs@hotmail.com> wrote:
Show 5 quoted lines
> I was doing some research on git objects. I understand that each object is
> represented with hash code and we can find the type of object with git cat
> command. I was wondering is there any command we can give to find the list
> of commit object (or any other object type) in current project without doing
> cat on each and every object inside .git/objects/
git rev-list --all

That will list all commits, starting from each current branch or tag and walking backwards through history.

Previous: Anjib Mulepati
Message 2 of 2 in “Finding list of commit object”
  1. Anjib MulepatiMar 26, 2012
  2. Shawn PearceMar 26, 2012

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.