Format strings instead of values in git.log
See original GitHub issuegit.log has formating strings in result
],
latest: {
hash: 'd4a703f32ab09f15836d4e2fcde57a5ae3ac7b68',
date: '%aI',
message: 'init',
refs: '%D',
body: '',
author_name: 'name',
author_email: 'name@company'
},
total: 1
}
Works find locally (macos) but is incorrect when deployed on an alpine linux instance
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
pretty-formats Documentation - Git
The format:<format-string> format allows you to specify which information you want to show. It works a little bit like printf format, with the...
Read more >Git log format string cheatsheet - Devhints
Git log format string cheatsheet. #Log format. Pretty format.
Read more >Use Git log to format the commit history - Edureka
In this article, we will discuss some advanced options to format and print the commit logs to fetch the information that you need...
Read more >Format string for consistent separation between entries output ...
From the git log man page: -z. Separate the commits with NULs instead of with ...
Read more >Advanced Git Log | Atlassian Git Tutorial
The advanced features of git log can be split into two categories: formatting how each commit is displayed, and filtering which commits are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome - thanks heaps - will try and get an updated image created, but in the meantime thanks for the quick fix!
The version of
git
you are using doesn’t support%D
as a token in the format string (it was added in2.2.3
).If you aren’t able to update your
git
installation, you can work around this by passing in a format object to thegit.log
call: