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

Complete support for git log --graph #352

Closed
phil-blain opened this issue Oct 24, 2019 · 4 comments
Closed

Complete support for git log --graph #352

phil-blain opened this issue Oct 24, 2019 · 4 comments
Labels
cantfix Bug or feature we are unable to fix

Comments

@phil-blain
Copy link
Contributor

Currently d-s-f doesn't work correctly with git log --graph. Among other things, the headers are not formatted correctly, and the setting to ignore the leading +/- is not respected. Example:

git log --decorate --oneline  -1 --stat -p  git.c

no-graph

git log --decorate --oneline --graph -1 --stat -p  git.c

graph

I guess that is because of the characters * | / \ used to display the graph...

That would be a great addition!

@scottchiefbaker
Copy link
Contributor

I didn't even know that git log showed the actual diffs until this. I like this idea in theory, but the logic to leave the starting | \ / and remove the - + would be pretty complex. Especially considering this is more of a "corner case" as far as use cases go.

I'll leave this bug open for future conversation. If this were an easy fix I would implement it right away. Because it's not I will leave it open and ponder a solution.

@OJFord
Copy link
Member

OJFord commented Feb 11, 2020

d-s-f works fine with git log --patch (-p), if enabled in core.pager, since it's only the --graph flag that introduces the | line.

@phil-blain Do you actually use the two together, ordinarily? --graph to me seems much less useful when each log entry is large, as it is if --patches are included.

@phil-blain
Copy link
Contributor Author

@OJFord you are right, in fact I had configured a logo git alias for git log --oneline --graph --decorate and using this alias with -p would create the output above. But since then I removed the --graph argument from my alias to overcome this limitation in d-s-f.

@scottchiefbaker scottchiefbaker added the cantfix Bug or feature we are unable to fix label Apr 23, 2020
@scottchiefbaker
Copy link
Contributor

Due to the semi-random line indicators that git graph --log adds this is not something we can really fix. I've been thinking about it for a while and there is no easy way to do this.

d-s-f is not compatible with --log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cantfix Bug or feature we are unable to fix
Projects
None yet
Development

No branches or pull requests

3 participants