diff options
author | Teddy Wing | 2020-08-30 02:59:42 +0200 |
---|---|---|
committer | Teddy Wing | 2020-08-30 02:59:42 +0200 |
commit | 118d466716ca688e3d1f5857cf8ea35b23c8e704 (patch) | |
tree | ef040d23c8c5ac564085d3c77672efddb321ac22 | |
parent | 61e582cf930bfa0bbc20c5c7c3c4b3a6098ce53e (diff) | |
download | git-suggestion-118d466716ca688e3d1f5857cf8ea35b23c8e704.tar.bz2 |
diff_options: Add doc comments
-rw-r--r-- | src/diff_options.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/diff_options.rs b/src/diff_options.rs index 1b6fe76..571fe63 100644 --- a/src/diff_options.rs +++ b/src/diff_options.rs @@ -14,6 +14,7 @@ // along with this program. If not, see <https://www.gnu.org/licenses/>. +/// Git diff options. static FLAGS: [&'static str; 97] = [ "--abbrev", "--anchored", @@ -115,6 +116,9 @@ static FLAGS: [&'static str; 97] = [ ]; +/// Parse Git diff options from `args`. +/// +/// Returns a tuple containing `(args-that-are-not-diff-options, diff-options)`. pub fn parse(args: &[String]) -> (Vec<&String>, Vec<&String>) { let mut program_args = Vec::new(); let mut diff_args = Vec::new(); |