git-pr
created pr with
73.1
cmds
checkout latest patchset:
ssh pr.pico.sh print 73 | git am -3checkout any patchset in a patch request:
ssh pr.pico.sh print 73.[rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 73
Patchset
73.1
Add range-diff to contrib
jolheiser
2025-08-21T12:02:49ZHelpful 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() { | |
| 56 | 56 | if err != nil { | |
| 57 | 57 | panic(err) | |
| 58 | 58 | } | |
| 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 | + | } | |
| 59 | 67 | ||
| 60 | 68 | // Accepted patch | |
| 61 | 69 | userKey.MustCmd(patch, "pr create test") |
| ... | ... | @@ -87,6 +95,11 @@ func main() { | |
| 87 | 95 | userKey.MustCmd(nil, "pr edit 6 Closed patch with review") | |
| 88 | 96 | adminKey.MustCmd(otherPatch, "pr add --close 6") | |
| 89 | 97 | ||
| 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 | + | ||
| 90 | 103 | fmt.Println("time to do some testing...") | |
| 91 | 104 | ch := make(chan os.Signal, 1) | |
| 92 | 105 | signal.Notify(ch, os.Interrupt, syscall.SIGTERM) |