Skip to content
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

feat: support showing commits and logging #2

Merged
merged 1 commit into from
Feb 22, 2024
Merged

feat: support showing commits and logging #2

merged 1 commit into from
Feb 22, 2024

Conversation

AdeAttwood
Copy link
Owner

@AdeAttwood AdeAttwood commented Feb 22, 2024

feat: support showing commits and logging

Summary:

Create two new commands, "Sshow" and "Slog" they will run the sapling show and
log commands. All the output will be put info a buffer. This is all implemented
using the BufReadCmd auto command so it can be easily expanded.

The show command will load the diff info a buffer with the details and
description at the top of the buffer in comments. The file will be a diff
filetype so its recommended to treesitter for nice diff highlighting

The log command will run sl log with your given ref and put the output in a
buffer. Right how we are loading the raw output of the command in the buffer,
all highlighting is done with baleia. This will escape your ansi output and
provide the correct colors. This uses the default log command so the output can
be configured in sapling with ui.logtemplate

Test Plan:

Right now there is no testing for this. I will in the future set this up in CI.
Because this project is very early I would like to have a bit more of a history
before we start using it for testing.

Summary:

Create two new commands, "Sshow" and "Slog" they will run the sapling show and
log commands. All the output will be put info a buffer. This is all implemented
using the `BufReadCmd` auto command so it can be easily expanded.

The show command will load the diff info a buffer with the details and
description at the top of the buffer in comments. The file will be a diff
filetype so its recommended to treesitter for nice diff highlighting

The log command will run `sl log` with your given ref and put the output in a
buffer. Right how we are loading the raw output of the command in the buffer,
all highlighting is done with baleia. This will escape your ansi output and
provide the correct colors. This uses the default log command so the output can
be configured in sapling with `ui.logtemplate`

Test Plan:

Right now there is no testing for this. I will in the future set this up in CI.
Because this project is very early I would like to have a bit more of a history
before we start using it for testing.
@AdeAttwood AdeAttwood changed the title Support showing commits and logging feat: support showing commits and logging Feb 22, 2024
@AdeAttwood AdeAttwood merged commit 73a8ace into 0.x Feb 22, 2024
3 checks passed
@AdeAttwood AdeAttwood deleted the pr2 branch February 22, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant