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

Re: [PATCH] Automatically line wrap long commit messages.

From
Junio C Hamano <junkio@cox.net>
Date
Jun 1, 2006, 06:37 UTC
Message-ID
<7v3beptm92.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060601033430.GA13485@spearce.org>
Shawn Pearce <spearce@spearce.org> writes:
> Because git-commit currently performs a status update and throws
> that data into the editor buffer.  That takes longer than committing
> from the command line.  Especially if I've just done a git-diff or
> git-status to see what is changed and about to be committed...

Ah, why does it take this many exchanges to extract the true motive behind what people do even in a technical forum like this, I wonder...

So what you want is not multiple -m options nor piping to fmt. What you really want is an option that is the opposite of -v to git-commit that omits the status list ("_could_ commit if you update-index" part -- since "will commit" is something we would need to compute anyway).

> On a project the size of GIT on a Unix system this isn't a big deal;
> on a 9000 file project on Cygwin this difference is significant
> to me.

I suspect you are suffering from lstat() performance. I wonder if "assume unchanged" git help your situation?

Previous: Shawn Pearce
Message 10 of 10 in “Automatically line wrap long commit messages.”
  1. Automatically line wrap long commit messages.Shawn Pearce, May 29, 2006
  2. Jan-Benedict GlawMay 29, 2006
  3. Shawn PearceMay 29, 2006
  4. Junio C HamanoMay 29, 2006
  5. Shawn PearceMay 29, 2006
  6. Junio C HamanoMay 30, 2006
  7. Shawn PearceMay 31, 2006
  8. Junio C HamanoMay 31, 2006
  9. Shawn PearceJun 1, 2006
  10. Junio C HamanoJun 1, 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.