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

Re: Allow editing of a revert-message

From
Junio C Hamano <junkio@cox.net>
Date
Nov 23, 2005, 19:29 UTC
Message-ID
<7v7jaz5fj7.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0511230954440.13959@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> ..., although I 
> actually suspect it should be on by default (and we should have a 
> "--no-edit" flag to disable it, probably together with an automatic 
> disable if stdin isn't a terminal).

Thanks, and I agree. It is very very unlikely that somebody has git-revert in her script and relies on git-revert to be non-interactive, so we might not even need --no-edit.

> +[ "$edit" ] && ${EDITOR:-${VISUAL:-vi}} .msg
>  case "$no_commit" in
>  '')
>  	git-commit -n -F .msg
I think we can do
	-e)
		edit="-e" ;;
        ..
	git-commit -n -F .msg $edit
to lose the ${EDITOR-${VISUAL-vi}} part..
Previous: Linus TorvaldsNext: Linus Torvalds
Message 2 of 3 in “Allow editing of a revert-message”
  1. Linus TorvaldsNov 23, 2005
  2. Junio C HamanoNov 23, 2005
  3. Linus TorvaldsNov 23, 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.