Commit 89ef6f82 authored by amnesia's avatar amnesia

gitlog-to-changelog: prefix every entry with '* '

parent 57504f4f
#!/usr/bin/perl
# Convert git log output to ChangeLog format.
my $VERSION = '2008-12-21 12:07'; # UTC
my $VERSION = '2009-06-22 13:27'; # UTC
# The definition above must lie within the first 8 lines in order
# for the Emacs time-stamp write hook (at end) to update it.
# If you change this file with Emacs, please let the write hook
# do its job. Otherwise, update this string manually.
# Copyright (C) 2009 amnesia@boum.org
# Copyright (C) 2008 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
......@@ -149,6 +150,9 @@ sub quoted_cmd(@)
while ($line[0] =~ /^\s*$/) { shift @line; }
while ($line[$#line] =~ /^\s*$/) { pop @line; }
# Prefix the first non-empty line with '* '
$line[0] = '* ' . $line[0];
# Prefix each non-empty line with a TAB.
@line = map { length $_ ? "\t$_" : '' } @line;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment