Finding list of commit object

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Finding list of commit object

From: Anjib Mulepati <hidden>
Date: 2016-06-15 22:53:23

Hi All,

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/

Thanks,
Anjib

Re: Finding list of commit object

From: Shawn Pearce <hidden>
Date: 2016-06-15 22:53:23

On Mon, Mar 26, 2012 at 08:22, Anjib Mulepati [off-list ref] wrote:
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help