-
Notifications
You must be signed in to change notification settings - Fork 58
term: support pluggable history #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: b9f8be7) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/659835. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
This PR (HEAD: 6b01958) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/659835. Important tips:
|
This PR (HEAD: fe1e3a4) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/659835. Important tips:
|
Message from Laurent Demailly: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
This PR (HEAD: a5f4981) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/659835. Important tips:
|
This PR (HEAD: bad1ef1) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/659835. Important tips:
|
Message from Ian Lance Taylor: Patch Set 7: Hold+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
This PR (HEAD: 13c58aa) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/659835. Important tips:
|
…odd to add/expose something that isn't actually used/needed
13c58aa
to
ba6dd5c
Compare
This PR (HEAD: ba6dd5c) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/659835. Important tips:
|
Message from Laurent Demailly: Patch Set 10: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Sean Liao: Patch Set 10: (8 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
This PR (HEAD: 5e07c15) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/659835. Important tips:
|
Message from Laurent Demailly: Patch Set 10: (7 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Michael Pratt: Patch Set 17: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Jorropo: Patch Set 17: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Jorropo: Patch Set 17: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Jorropo: Patch Set 17: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Laurent Demailly: Patch Set 17: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Laurent Demailly: Patch Set 17: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Jorropo: Patch Set 17: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
This PR (HEAD: 6212813) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/659835. Important tips:
|
Message from Laurent Demailly: Patch Set 17: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Jorropo: Patch Set 18: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Go LUCI: Patch Set 18: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-04-18T18:48:46Z","revision":"4a14adcb4d9366152a31670b8176408ed3c3e4bf"} Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Jorropo: Patch Set 18: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Go LUCI: Patch Set 18: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Go LUCI: Patch Set 18: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Jorropo: Patch Set 18: Auto-Submit+1 Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Go LUCI: Patch Set 18: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-04-18T18:51:26Z","revision":"4a14adcb4d9366152a31670b8176408ed3c3e4bf"} Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Jorropo: Patch Set 18: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Jorropo: Patch Set 18: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Go LUCI: Patch Set 18: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Austin Clements: Patch Set 18: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Michael Pratt: Patch Set 18: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Expose a new History interface that allows replacement of the default ring buffer to customize what gets added or not; as well as to allow saving/restoring history on either the default ringbuffer or a custom replacement. Fixes golang/go#68780 Change-Id: I7e61dc6bb438749c8502223705518ef8ff9025b4 GitHub-Last-Rev: 6212813 GitHub-Pull-Request: #20 Reviewed-on: https://go-review.googlesource.com/c/term/+/659835 Reviewed-by: Michael Pratt <[email protected]> Auto-Submit: Jorropo <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Jorropo <[email protected]> Reviewed-by: Austin Clements <[email protected]>
Message from Go LUCI: Patch Set 18: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-04-21T19:18:18Z","revision":"4a14adcb4d9366152a31670b8176408ed3c3e4bf"} Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Michael Pratt: Patch Set 18: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
Message from Go LUCI: Patch Set 18: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/659835. |
This PR is being closed because golang.org/cl/659835 has been merged. |
…85) * Test/new implementation for golang/term#20 * better name and expose this history impl * Expose the AutoHistory as a field/simplify - also use the UnconditionallyAdd in AddToHistory() * fix bug with autohistory state * Use latest version of term PR and demo ability to output in At() as well * Adding Len() per latest comment on proposal - even though it's a bit odd to add/expose something that isn't actually used/needed * use the 2 calls version * Make linters happy; return update size errors * commented out but tested panic in History test * No more fork - 🎉
Expose a new History interface that allows replacement of the default
ring buffer to customize what gets added or not; as well as to allow
saving/restoring history on either the default ringbuffer or a custom
replacement.
Fixes golang/go#68780