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

🐛 Width of code section of "git log -p" is limited to 80 chars #1788

Open
Mmkldb opened this issue Aug 5, 2024 · 3 comments
Open

🐛 Width of code section of "git log -p" is limited to 80 chars #1788

Mmkldb opened this issue Aug 5, 2024 · 3 comments

Comments

@Mmkldb
Copy link

Mmkldb commented Aug 5, 2024

The code section within the output of git log -p is limited to 80 characters:
image

Is this a bug or misconfiguration?

@th1000s
Copy link
Collaborator

th1000s commented Aug 5, 2024

Delta uses the width reported by the terminal, that seems to fail here so the fallback value of 80 is used. Which terminal or terminal multiplexer are you using on what OS?

@Mmkldb
Copy link
Author

Mmkldb commented Aug 6, 2024

I see .. I'm using Alacritty, starting a wsl1 on windows, there I use fish as the shell.
Interestingly it is working fine with other commands, like git diff, git show and git blame. So there must be a little difference how git log -p is trying to fetch the width from the terminal application.

@th1000s
Copy link
Collaborator

th1000s commented Aug 12, 2024

Other commands work fine? git show HEAD (or git show HEAD | delta) uses the correct width, but git log -p HEAD [ | delta] does not (also when alternating between these commands repeatedly)? They all use the same terminal width logic. WSL1 not getting some terminal syscalls quite right isn't surprising, but this variation is :)

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

No branches or pull requests

2 participants