Re: Q: How to tag individual files

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

 



Poojan Wagh <poojanwagh@xxxxxxxxx> wrote:
> The crash course at: http://git.or.cz/course/svn.html says:
>
>> You usually tag commits but if you want, you can tag files (or trees, 
>> but that's a bit low-level) as well. 
>
> I've done a bit of searching, and I can't for the life of me figure out  
> how to tag an individual file. Help from the group would be much  
> appreciated. Thanks.

You don't tag individual files.  Git is snapshot based.  You tag
the entire project at once.

The comment you quoted was talking about tagging a single listing of
blobs (a tree) or a single blob (stream of bytes).  This can be handy
in rare cases.  In the linux kernel for example the prior history
was stored by tagging the tree of that prior history, as there was
no git based history preceeding that snapshot, so there were no
commits to tag.  In git.git Junio publishes his GnuPG public key
as a tagged blob, making it available to validate signed tag objects.

So you can't tag individual files.  The comment is a bit misleading
and gets far too low-level for an otherwise high-level conversion
guide.

-- 
Shawn.
--
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]

  Powered by Linux