diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-12-27 21:44:00 +0000 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-12-27 22:06:37 +0000 |
commit | 8210334b44bd63a450cf66e4203910e4c2eb055b (patch) | |
tree | f0490c49995d00f06dfd199306d12b98d9c0e846 /src/cli.rs | |
parent | 32e068bf6e736ff9d364b9d066adbfc62e69b944 (diff) |
Use special style attribute to control line-number in hunk-header
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -363,10 +363,13 @@ pub struct Opt { #[structopt(long = "hyperlinks-file-link-format", default_value = "file://{path}")] pub hyperlinks_file_link_format: String, - #[structopt(long = "hunk-header-style", default_value = "syntax")] - /// Style (foreground, background, attributes) for the hunk-header. See STYLES section. The - /// special attribute 'file' can be used to include the file path in the hunk header. The style - /// 'omit' can be used to remove the hunk header section from the output. + #[structopt(long = "hunk-header-style", default_value = "line-number syntax")] + /// Style (foreground, background, attributes) for the hunk-header. See STYLES section. Special + /// attributes 'file' and 'line-number' can be used to include the file path, and number of + /// first hunk line, in the hunk header. If included in the hunk header, 'file' and + /// 'line-number' are styled according to 'file-style' and 'hunk-header-decoration-style' + /// respectively. The style 'omit' can be used to remove the hunk header section from the + /// output. pub hunk_header_style: String, #[structopt(long = "hunk-header-decoration-style", default_value = "blue box")] |