aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/change-id.go
diff options
context:
space:
mode:
Diffstat (limited to 'git-codereview/change-id.go')
-rw-r--r--git-codereview/change-id.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/git-codereview/change-id.go b/git-codereview/change-id.go
new file mode 100644
index 0000000..dd2dee0
--- /dev/null
+++ b/git-codereview/change-id.go
@@ -0,0 +1,11 @@
+// Copyright 2024 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+import "fmt"
+
+func cmdChangeId(args []string) {
+ fmt.Printf("Change-Id: I%x\n", randomBytes())
+}