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

Re: git-commit: select which files to commit while editing the commit message

From
Sean <seanlkml@sympatico.ca>
Date
Dec 9, 2006, 07:02 UTC
Message-ID
<BAYC1-PASMTP1040BEA204693E211075F0AED20@CEZ.ICE>
In-Reply-To
<7vpsaui4cn.fsf@assigned-by-dhcp.cox.net>

On Fri, 08 Dec 2006 11:18:16 -0800 Junio C Hamano <junkio@cox.net> wrote:

Show 5 quoted lines
> Personally, I would refuse to use such a modified git, because
> often the first thing I would do in the commit log buffer is
> check the listed files and remove the '# ...' lines while
> typing.  I do not want that to affect the set of changes I
> staged in any way.

Your usage should not affected at all by the addition of this feature. One of the comment lines could be magic, in that if it is missing the feature is disabled. Something like:

#  *** Editable Commit List ***

Or some such at the top of the list, where if it is missing after commit message editing, the post processing of the file list will be completely disabled. Another alternative would be to just enable the feature with an -A or some other commit command line option, so that those uninterested in such a feature don't have to even see it.

It would be interesting to hear from Pasky on how this feature has worked out in practice for Cogito users and whether he thinks it would be a good addition to Git.

Previous: Junio C Hamano
Message 3 of 3 in “git-commit: select which files to commit while editing the commit message”
  1. PazuDec 8, 2006
  2. Junio C HamanoDec 8, 2006
  3. SeanDec 9, 2006

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.