aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Smirnov <onlyjob@member.fsf.org>2012-09-19 17:43:32 +1000
committerDmitry Smirnov <onlyjob@member.fsf.org>2012-09-19 17:46:16 +1000
commit1d74d4c0d933fc69ed5cec838c73502584dead05 (patch)
treef58d98cbd7e98f40bcd79cc61273d50756db2ece
parent8154f191b8bd0b7696e19932bcc84eca36b0c250 (diff)
downloadgit2cl-master.zip
git2cl-master.tar.gz
git2cl-master.tar.bz2
adding basic POD documentation:HEADmaster
To allow generation of man page using "pod2man" as well as accessing embedded documentation with "perldoc" (best practice).
-rwxr-xr-xgit2cl35
1 files changed, 35 insertions, 0 deletions
diff --git a/git2cl b/git2cl
index bc36f7e..5d9b90c 100755
--- a/git2cl
+++ b/git2cl
@@ -33,6 +33,41 @@
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA.
+=head1 NAME
+
+git2cl - tool to convert git logs to GNU ChangeLog
+
+=head1 SYNOPSIS
+
+git2cl > ChangeLog
+
+If you don't want git2cl to invoke git log internally, you can use it
+as a pipe.
+It needs a git log generated with --pretty --numstat and --summary.
+You can use it as follows:
+
+ git log --pretty --numstat --summary | git2cl > ChangeLog
+
+=head1 DESCRIPTION
+
+This is a quick'n'dirty tool to convert git logs to GNU ChangeLog
+format.
+
+The tool invokes `git log` internally unless you pipe a log to it.
+Thus, typically you would use it as follows:
+
+=head1 SEE ALSO
+
+Output format specification:
+ <http://www.gnu.org/prep/standards/html_node/Change-Logs.html>
+
+=head1 AUTHORS
+
+git2cl is developed by Simon Josefsson <simon@josefsson.org>
+ and Luis Mondesi <lemsx1@gmail.com>
+
+=cut
+
use strict;
use POSIX qw(strftime);
use Text::Wrap qw(wrap);