git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git "tag" objects implemented - and a re-done commit

From
Petr Baudis <pasky@ucw.cz>
Date
Apr 25, 2005, 22:18 UTC
Message-ID
<20050425221810.GM13467@pasky.ji.cz>
In-Reply-To
<Pine.LNX.4.58.0504251457510.18901@ppc970.osdl.org>

Dear diary, on Tue, Apr 26, 2005 at 12:05:17AM CEST, I got a letter where Linus Torvalds <torvalds@osdl.org> told me that...

Show 37 quoted lines
> 
> 
> On Mon, 25 Apr 2005, H. Peter Anvin wrote:
> > 
> > It would be good if the tag object could permit junk lines before the 
> > start of the header; in particular, the standard PGP/GPG signed message 
> > format looks like:
> 
> No, I've already explained why git doesn't parse arbitrary junk: I want 
> git to have 100% repeatable behaviour. And that very much means that if 
> git doesn't understand something, it just doesn't touch it or parse it.
> 
> Here's my trivial script to generate tags in proper format. Go wild:
> 
> 	#!/bin/sh
> 	( echo -e "object $(cat .git/HEAD)\ntype commit\ntag $1\n"; cat ) > .tmp-tag
> 	rm -f .tmp-tag.asc
> 	gpg -bsa .tmp-tag && cat .tmp-tag.asc >> .tmp-tag
> 	git-mktag < .tmp-tag
> 	rm -f .tmp-tag*
> 
> and it creates objects like this one:
> 
> 
> 	torvalds@ppc970:~/git> cat-file tag 
> 	ba613c023dcd03e06158caee9c0337e6b6988854
> 	object ec4465adb38d21966acdc9510ff15c0fe4539468
> 	type commit
> 	tag test-release
> 	Testing tagging
> 	-----BEGIN PGP SIGNATURE-----
> 	Version: GnuPG v1.2.4 (GNU/Linux)
> 	
> 	iD8DBQBCbVwSF3YsRnbiHLsRAliaAKCMlb6k6VAS7hxajwUtwRdzDZn9rACffVTb
> 	dRdDS6n+pjSAYbA6Lp11bQU=
> 	=JNiv
> 	-----END PGP SIGNATURE-----

Could we please at least maintain the newline between the "header" and data, like in the commit objects?

Thanks,
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Linus TorvaldsNext: Linus Torvalds
Message 13 of 14 in “git "tag" objects implemented - and a re-done commit”
  1. Linus TorvaldsApr 25, 2005
  2. Andreas GalApr 25, 2005
  3. Linus TorvaldsApr 25, 2005
  4. Andreas GalApr 25, 2005
  5. Linus TorvaldsApr 25, 2005
  6. Linus TorvaldsApr 25, 2005
  7. SeanApr 26, 2005
  8. Ryan AndersonApr 26, 2005
  9. Matthias UrlichsApr 27, 2005
  10. Linus TorvaldsApr 27, 2005
  11. H. Peter AnvinApr 25, 2005
  12. Linus TorvaldsApr 25, 2005
  13. Petr BaudisApr 25, 2005
  14. Linus TorvaldsApr 25, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.