Re: How do get a specific version of a particular file?

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

 



On 2/27/07, Theodore Ts'o <tytso@xxxxxxx> wrote:

So given a particular tree-ish and a pathname, I'd like get the contents
of that particular file as of a particular revision.  i.e., the
equivalent of:

        cvs -r v1.37 -p e2fsck/pass1.c
or
        bk cat -r 2345 e2fsck/pass1.c

The closest I've been able to come is to use

        git archive --format=zip v1.37 e2fsck/pass1.c | gunzip


git cat-file -p <objname>:file

I.e.: git cat-file v1.37:e2fsck/pass1.c
-
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]