git-pr

created pr with 73.1 on 2025-08-21T13:40:42Z · by 964fa508
cmds
checkout latest patchset:
ssh pr.pico.sh print 73 | git am -3
checkout any patchset in a patch request:
ssh pr.pico.sh print 73.[rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 73

Patchset 73.1 on 2025-08-21T13:40:42Z · commit ab0cddb

Add range-diff to contrib
jolheiser 2025-08-21T12:02:49Z
Helpful to be able to see a valid range-diff when doing some dev testing.
As an example, this PR was originally intended for something else that turned out to be me testing range-diffs incorrectly. 😅

Signed-off-by: jolheiser <git@jolheiser.com>
Semantic diff summary
0 added, 1 modified, 0 signature changed, 0 removed across 1 analyzed file
+13 -0 contrib/dev/main.go #
......@@ -56,6 +56,14 @@ func main() {
5656 if err != nil {
5757 panic(err)
5858 }
59+ rd1, err := fixtures.Fixtures.ReadFile("a_b_reorder.patch")
60+ if err != nil {
61+ panic(err)
62+ }
63+ rd2, err := fixtures.Fixtures.ReadFile("a_c_changed_commit.patch")
64+ if err != nil {
65+ panic(err)
66+ }
5967
6068 // Accepted patch
6169 userKey.MustCmd(patch, "pr create test")
......@@ -87,6 +95,11 @@ func main() {
8795 userKey.MustCmd(nil, "pr edit 6 Closed patch with review")
8896 adminKey.MustCmd(otherPatch, "pr add --close 6")
8997
98+ // Range Diff
99+ userKey.MustCmd(rd1, "pr create test")
100+ userKey.MustCmd(nil, "pr edit 7 Range Diff")
101+ userKey.MustCmd(rd2, "pr add 7")
102+
90103 fmt.Println("time to do some testing...")
91104 ch := make(chan os.Signal, 1)
92105 signal.Notify(ch, os.Interrupt, syscall.SIGTERM)
Back to top