-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Splitter character in the log result #985
Comments
Another use case -- I wanted to get the commit hash and parent hash: simpleGit().log({
format: {
hash: '%H',
parents: '%P',
},
}); Seemed to work fine, but not for the initial commit, which also got the additional |
steveukx
added a commit
that referenced
this issue
Sep 15, 2024
…ave part of the field separator in the preceding field. The default splitter ` ò ` surrounds the character with spaces that were being trimmed through a needless use of `String#trim` in the parser. Closes #985
Merged
Thank you for reporting this issue - the next version will include a fix to work as expected. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run the following
git log
command with a custom format:I'm getting the splitter character at the end of the subject, like this:
It happens only when the body is empty. When I swap the order of attributes in the
format
dictionary, the character is displayed at the beginning instead. Everything seems to work fine if there's at least one attribute in theformat
dictionary both before and afterbody
.Git version:
2.37.2.windows.2
The text was updated successfully, but these errors were encountered: