Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
89ef6f82
Commit
89ef6f82
authored
Jun 22, 2009
by
amnesia
Browse files
gitlog-to-changelog: prefix every entry with '* '
parent
57504f4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
gitlog-to-changelog
View file @
89ef6f82
#!/usr/bin/perl
# Convert git log output to ChangeLog format.
my
$VERSION
=
'
200
8-12
-2
1
1
2:0
7
';
# UTC
my
$VERSION
=
'
200
9-06
-2
2
1
3:2
7
';
# 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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment