Skip to content

Commit 1cbd0a9

Browse files
committed
Create Metadata module
1 parent 8860947 commit 1cbd0a9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/GitFollow/Metadata.pm

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
###
2+
### git-follow - Follow lifetime changes of a pathspec in Git.
3+
###
4+
### Copyright (C) 2023 Nickolas Burr <nickolasburr@gmail.com>
5+
###
6+
package GitFollow::Metadata;
7+
8+
use 5.008;
9+
use strict;
10+
use warnings;
11+
use Exporter qw(import);
12+
13+
our @EXPORT = qw(
14+
get_version
15+
print_version
16+
$GIT_FOLLOW_VERSION
17+
);
18+
19+
# Current release version.
20+
our $GIT_FOLLOW_VERSION = "1.1.5";
21+
22+
sub get_version;
23+
sub print_version;
24+
25+
# Get current release version.
26+
sub get_version {
27+
return $GIT_FOLLOW_VERSION;
28+
}
29+
30+
# Print current release version.
31+
sub print_version {
32+
print "$GIT_FOLLOW_VERSION\n";
33+
exit 0;
34+
}
35+
36+
1;

0 commit comments

Comments
 (0)