-
Notifications
You must be signed in to change notification settings - Fork 393
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
🐛 [format.pretty] breaks delta #174
Comments
I think this one is already resolved? Not sure where it fixes, but maybe at version 0.1.1, this condition couldn't catch the Meta so that they don't continue. Lines 146 to 148 in 9732c88
delta: v0.4.4 |
Yes, I believe this is fixed. Thanks! |
Confirmed the behavior is fixed in 0.4.4 vs 0.4.3. Thanks! |
The log format alias above is:
|
@kbd @dandavison Lines 90 to 92 in 9cf186c
If I fix here forcibly (wrong approach. I'm doing like Not sure how to detect if this is CommitMeta, but if I come up with good idea, will fix. |
What is broken for me is that the commit line is not formatted correctly for The workaround I've found is to add the word
|
Hi @Mellbourn, by default git does include the word I wonder what's going on with your |
Ah, OK. Right, your example challenges delta to explain itself a bit! I mean, delta (being Line 114 in e7d1e28
So, what shall we do? I'm open to delta having fairly crazy technical options -- it is a tool for programmers after all -- as long as it doesn't affect performance / UX in the default case. We could perhaps allow users to supply their own regular expression to match key sections of the output such as the commit line to be decorated? Or perhaps delta could inspect the |
Sounds to me like we would get the most gain for the least effort by allowing users to supply their own regular expressions. |
Yes, I agree. |
That seems to have been a simple change. #558 if you would like to try it out. So for your example, something like |
I've often thought it's a shame that the separator characters included in ASCII are never used. They'd be a natural fit here if git had used them to delimit structure in I suppose that'd be the best way to use the regex with a custom log format? Add a separator character to the beginning of your log format and look for that in the regex? |
|
Hi, thanks for making this! Still got a few bugs but once they are fixed, that would be an indispensable tool!
I have in my
.gitconfig
:The
[format]
part seems to breakdelta
. When I do agit log -p
, the first line (commit hash, committer, date) is fine however the rest are colorless. The style is preserved as I've specified informat
though. What can I do about it?Delta 0.1.1.
The text was updated successfully, but these errors were encountered: