Walking commits from the first

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

 When you clone a big git repository and would like to read and
understand the source code, you need to checkout and read every commit
right from the first commit. As per my knowledge, there is no command
(even with flags) to checkout the first commit of the repository.

If there is some command, please put it in user's manual

Also if we somehow managed to do it by a series of commands, after we
finish reading it then we need to redo it all over again to checkout
the next commit.

So, what i would like to have is something like this:
1) git checkout --first
   Checksout the commit #1 of the git repository
2) git checkout --next
   Checksout the next commit

What I think:

I know that every git commit is a vertice in a DAG which has it's edge
pointed to it's parent. So, walking from the latest commits to old
commits is easy but the reverse is not.
I would like to know if there is any problem if we make the walking
bidirectional. What i mean is, when a new commit is created, create an
edge not only from it to it's parent but also from it's parent to it.
Also, have something for the first commit of the repo which can be
referred as INIT (similiar to HEAD)

-pavan
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]