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

Re: [PATCH] cg-tag - add support for longer commit messages

From
Petr Baudis <pasky@suse.cz>
Date
Oct 11, 2005, 23:39 UTC
Message-ID
<20051011233940.GJ30889@pasky.or.cz>
In-Reply-To
<11289987493327-git-send-email-martin@catalyst.net.nz>

Dear diary, on Tue, Oct 11, 2005 at 04:45:49AM CEST, I got a letter where Martin Langhoff <martin@catalyst.net.nz> told me that...

> Added an -m switch that points to a filename which contains a (potentially
> long) tag message.
> 
> Bugs: Could alternatively be implemented via STDIN.

Hmm. Well, the '-d' option is silly and that's really what should read as '-m', to keep it the same as cg-commit. Actually, I'd like to have it as similar as possible, so it would be ideal to have cg-tag do something like

	if got_argument '-e'; then
		if tty -s; then
			throw_together_some_CG:_stuff
			$EDITOR
			parse_the_CG:_stuff
		else
			cat >>logmsg
		fi
	fi

to keep it symmetric to cg-commit (except that it won't require the message if you don't bother to pass it anything). Well, I guess the CG: stuff parsing is lower priority (and would require some factoring out of the common code from cg-commit), so I'll do the simple part soon (today or on Thursday) if noone does it first. *hint* *hint* ;-)

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Linus Torvalds
Message 3 of 3 in “cg-tag - add support for longer commit messages”
  1. cg-tag - add support for longer commit messagesMartin Langhoff, Oct 11, 2005
  2. Linus TorvaldsOct 11, 2005
  3. Petr BaudisOct 11, 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.