login
Header Space

 
 

[PATCH] git-commit: Reformat log messages provided on commandline

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Junio C Hamano <junkio@...>, Matthieu Moy <Matthieu.Moy@...>, <git@...>
Date: Wednesday, May 9, 2007 - 10:24 am

Hi,

On Wed, May 09, 2007 at 03:57:28PM CEST, Johannes Schindelin wrote:

  oh, indeed - good point. cg-commit uses fmt to format the message, I
think git-commit should do the same; let's see how controversial such a
change would be.

---
This makes git-commit filter log messages provided on commandline by fmt,
thus making nice paragraphs from them. This makes it possible to specify
even long commit messages on command line without worrying about this, akin
to cg-commit.

Signed-off-by: Petr Baudis <pasky@suse.cz>
---

 git-commit.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-commit.sh b/git-commit.sh
index f28fc24..28cbb55 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -432,7 +432,7 @@ fi
 
 if test "$log_message" != ''
 then
-	echo "$log_message"
+	echo "$log_message" | fmt
 elif test "$logfile" != ""
 then
 	if test "$logfile" = -


-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
		-- Samuel Beckett
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[FAQ?] Rationale for git's way to manage the index, Matthieu Moy, (Sun May 6, 12:10 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Guilhem Bonnefille, (Mon May 7, 7:40 am)
Re: [FAQ?] Rationale for git's way to manage the index, Daniel Barkalow, (Mon May 7, 6:23 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Johannes Schindelin, (Mon May 7, 8:55 am)
Re: [FAQ?] Rationale for git's way to manage the index, Junio C Hamano, (Mon May 7, 3:31 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Linus Torvalds, (Sun May 6, 1:25 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Matthieu Moy, (Sun May 6, 2:23 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Matthieu Moy, (Wed May 9, 1:18 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Martin Langhoff, (Mon May 7, 11:16 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Johannes Schindelin, (Tue May 8, 7:07 am)
Re: [FAQ?] Rationale for git's way to manage the index, Linus Torvalds, (Tue May 8, 12:45 am)
Re: [FAQ?] Rationale for git's way to manage the index, Linus Torvalds, (Wed May 9, 11:52 am)
Re: [FAQ?] Rationale for git's way to manage the index, Junio C Hamano, (Wed May 9, 8:31 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Shawn O. Pearce, (Thu May 10, 6:06 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Petr Baudis, (Thu May 10, 6:51 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Steven Grimm, (Wed May 9, 10:27 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Linus Torvalds, (Wed May 9, 10:39 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Matthieu Moy, (Thu May 10, 4:00 am)
Re: [FAQ?] Rationale for git's way to manage the index, Daniel Barkalow, (Wed May 9, 1:39 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Linus Torvalds, (Wed May 9, 2:16 pm)
Re: [FAQ?] Rationale for git's way to manage the index, J. Bruce Fields, (Wed May 9, 1:18 pm)
Re: [FAQ?] Rationale for git's way to manage the index, J. Bruce Fields, (Wed May 9, 1:29 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Martin Langhoff, (Tue May 8, 1:35 am)
Re: [FAQ?] Rationale for git's way to manage the index, Johannes Schindelin, (Sun May 6, 7:51 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Matthieu Moy, (Mon May 7, 4:02 am)
Re: [FAQ?] Rationale for git's way to manage the index, Johannes Schindelin, (Mon May 7, 7:05 am)
Re: [FAQ?] Rationale for git's way to manage the index, Julian Phillips, (Sun May 6, 6:53 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Shawn O. Pearce, (Mon May 7, 9:41 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Shawn O. Pearce, (Tue May 8, 10:52 am)
Re: [FAQ?] Rationale for git's way to manage the index, Linus Torvalds, (Sun May 6, 3:54 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Johannes Schindelin, (Sun May 6, 12:51 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Matthieu Moy, (Sun May 6, 1:34 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Johannes Schindelin, (Sun May 6, 7:42 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Junio C Hamano, (Sun May 6, 1:43 pm)
Re: [FAQ?] Rationale for git's way to manage the index, Johannes Schindelin, (Wed May 9, 9:57 am)
[PATCH] git-commit: Reformat log messages provided on comman..., Petr Baudis, (Wed May 9, 10:24 am)
Re: [PATCH] git-commit: Reformat log messages provided on co..., Johannes Schindelin, (Wed May 9, 11:01 am)
speck-geostationary