Make the log work for commits and symbolic refs also.
[catagits/Gitalist.git] / lib / Gitalist / URIStructure / WithLog.pm
diff --git a/lib/Gitalist/URIStructure/WithLog.pm b/lib/Gitalist/URIStructure/WithLog.pm
new file mode 100644 (file)
index 0000000..318522d
--- /dev/null
@@ -0,0 +1,11 @@
+package Gitalist::URIStructure::WithLog;
+use MooseX::MethodAttributes::Role;
+use namespace::autoclean;
+
+sub log : Chained('find') PathPart('') CaptureArgs(0) {}
+
+sub shortlog : Chained('log') Args(0) {}
+
+sub longlog : Chained('log') PathPart('log') Args(0) {}
+
+1;
\ No newline at end of file