Closed linrongbin16 closed 8 months ago
Oh I found it: https://doc.rust-lang.org/std/fmt/#formatting-parameters,
There's one line about the <FMT>
syntax in --help
output:
Options --line-numbers-left-format and --line-numbers-right-format allow you to change the contents of the line number columns. Their values are arbitrary format strings, which are allowed to contain the placeholders {nm} for the line number associated with the old version of the file and {np} for the line number associated with the new version of the file. The placeholders support a subset of the string formatting syntax documented here: https://doc.rust-lang.org/std/fmt/#formatting-parameters. Specifically, you can use the alignment and width syntax.
emmmm, since I'm not familiar with rust, still not sure what does {author:<15.14}
mean?
In rust doc, it seems the dot .
is for number precision, but I'm not sure here.
Hi, in the
delta --help
output, there's--blame-format
option doc:My question is: is there any document about what syntax is the
"{timestamp:<15} {author:<15.14} {commit:<8}"
of--blame-format
?A more specific question is: what does
{author:<15.14}
mean here? 15 is the max width? or 14?