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

GIT_PAGER=mdless git log hangs #83

Closed
covracer opened this issue Mar 23, 2023 · 3 comments
Closed

GIT_PAGER=mdless git log hangs #83

covracer opened this issue Mar 23, 2023 · 3 comments

Comments

@covracer
Copy link

covracer commented Mar 23, 2023

GIT_PAGER=mdless git log hangs. If I press control+c I get

^CTraceback (most recent call last):
	6: from /usr/local/bin/mdless:23:in `<main>'
	5: from /usr/local/bin/mdless:23:in `load'
	4: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/bin/mdless:18:in `<top (required)>'
	3: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/bin/mdless:18:in `new'
	2: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:156:in `initialize'
	1: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:623:in `convert_markdown'
/var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:623:in `gsub!': Interrupt

Formatting a couple commits standalone works:

echo 'commit f4c228de2b75c8b435e528aef375a71b4e661891 (tag: v1.2.0, origin/main, origin/HEAD)
Author: James Braza <email@address.web>
Date:   Thu Mar 23 14:24:12 2023 -0700

    Fixing pandas deprecation warning (#2828)

    ### Background
    This resolves a `pandas` `FutureWarning` deprecation warning that was
    coming up.

    ### Changes
    This PR

    ### Testing
    - How did you verify your changes?

commit 53aded39a7ac7adb81cfd8c42d341ba191804bab
Author: Christopher Covington <email@address.web>
Date:   Thu Mar 23 19:39:23 2023 +0000

    Flavorful (#2825)
    
    ### Background
    - It was bland
    - Related links:
        * https://firstlink.domain/?seek=find
        * https://otherlink.domain/path
    
    ### Changes
    - Add flavor' | mdless

(I've configured core.commentchar=@ in git to make including headers in commit messages easier.)

@ttscoff
Copy link
Owner

ttscoff commented Mar 24, 2023 via email

@ttscoff
Copy link
Owner

ttscoff commented Mar 24, 2023 via email

@leder11011
Copy link

did you try:
GIT_PAGER=git log | mdless
I have same output piped from java to mdless and it works!

@ttscoff ttscoff closed this as completed May 31, 2023
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

3 participants