aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd/skate-reduce/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/cmd/skate-reduce/main.go')
-rw-r--r--skate/cmd/skate-reduce/main.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/skate/cmd/skate-reduce/main.go b/skate/cmd/skate-reduce/main.go
index c0ef9fc..098240a 100644
--- a/skate/cmd/skate-reduce/main.go
+++ b/skate/cmd/skate-reduce/main.go
@@ -44,6 +44,11 @@
// * oled | zippy mode for releases and OL inputs, emit biblioref.
// |
// | $ skate-reduce -m oled -F a.ndj -O b.ndj
+// |
+// |
+// * rere | zippy mode for OL release and ref (as release) inputs, emit biblioref.
+// |
+// | $ skate-reduce -m rere -O a.ndj -F b.ndj
//
package main
@@ -159,6 +164,18 @@ func main() {
if err := skate.ZippyVerifyRefsOpenLibrary(o, f, bw); err != nil {
log.Fatal(err)
}
+ case "rere":
+ o, f, err := xio.OpenTwo(*releases, *refs)
+ if err != nil {
+ log.Fatal(err)
+ }
+ r, ok := reasonMap[*reason]
+ if !ok {
+ log.Fatalf("unknown reason: %v", *reason)
+ }
+ if err := skate.ZippyExactReleases(o, f, r, bw); err != nil {
+ log.Fatal(err)
+ }
default:
log.Fatalf("invalid mode")
}