Create a new ChangeCmd with default settings.
()
| 98 | impl ChangeCmd { |
| 99 | /// Create a new ChangeCmd with default settings. |
| 100 | pub fn new() -> Self { |
| 101 | Self { |
| 102 | identifier: None, |
| 103 | view: None, |
| 104 | format: ChangeFormat::Default, |
| 105 | show_deps: false, |
| 106 | show_hunks: false, |
| 107 | full_hash: false, |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | /// Builder: set the identifier. |
| 112 | pub fn with_identifier(mut self, id: impl Into<String>) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected