Git development
 help / color / mirror / Atom feed
* git "tag" objects implemented - and a re-done commit
@ 2005-04-25 19:25 Linus Torvalds
  2005-04-25 20:23 ` Andreas Gal
  2005-04-25 21:36 ` H. Peter Anvin
  0 siblings, 2 replies; 14+ messages in thread
From: Linus Torvalds @ 2005-04-25 19:25 UTC (permalink / raw)
  To: Git Mailing List


Ok, I just pushed out my "tag" object implementation, and due to some
local braindamage over here, I ended up re-doing one commit, so if you
happened to pull my 'git' tree at _just_ the right time, you will have a
commit object named 06a02346f6a2e9ff113c189629ff7148f5141bb0 in your git 
repository, which is not exactly bogus, but which I ended up undoing.

So if you've been pulling my git stuff, check your "git log" for whether
you find that commit in your stuff. If you do, I guess it doesn't much
matter (ie should all merge in cleanly), but if you want to match my tree,
you should first undo it if it's your HEAD commit (by setting your HEAD to
the _parent_ of that commit, and then running the git-prune-script thing).

Anyway, I decided that my original model for tags was the right one, with 
a trivial extension. Notably, if you want to tag a single file or a tree 
object, go wild. The tag object format is:

	object <sha1>
	type <type>
	tag <tag>
	.. free-form commentary and signature of this all ..

and the "git-mktag" program verifies that the three first lines are valid 
before it accepts it and writes it as a git object.

Right now the tags don't do anything, except fsck can verify them (not the
signature - git doesn't even specify any particular format, and you may
validly have unsigned tags in your tree), and will print out something
like

	tagged commit e83c5163316f89bfbde7d9ab23ca2e25604af290 (v2.6.12-rc2)

if you were to have such a tag-object in your object database (you don't, 
because I've not generated one, but hey..)

		Linus

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-04-27 15:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-25 19:25 git "tag" objects implemented - and a re-done commit Linus Torvalds
2005-04-25 20:23 ` Andreas Gal
2005-04-25 20:42   ` Linus Torvalds
2005-04-25 21:46     ` Andreas Gal
2005-04-25 22:07       ` Linus Torvalds
2005-04-25 22:39         ` Linus Torvalds
2005-04-26  2:44           ` Sean
2005-04-26  5:55           ` Ryan Anderson
2005-04-27  3:36     ` Matthias Urlichs
2005-04-27 15:37       ` Linus Torvalds
2005-04-25 21:36 ` H. Peter Anvin
2005-04-25 22:05   ` Linus Torvalds
2005-04-25 22:18     ` Petr Baudis
2005-04-25 22:41       ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox