From f8aa7f6c8a632546b4cb234abf0030a39be52eed Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 26 Aug 2020 21:41:36 +0200 Subject: Add `diff_options` to parse Git diff options In order to accept Git diff options on the command line, we need a way to extract these from args. Add a function to parse diff options. These were sourced from: https://github.com/git/git/blob/675a4aaf3b226c0089108221b96559e0baae5de9/Documentation/diff-options.txt The function loops through the input arguments and extracts all diff options and their values. Still needs some work to integrate it into `git-sugdiff`, but it currently works as advertised. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 314d130..fa31028 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,6 +17,7 @@ #![warn(rust_2018_idioms)] pub mod config; +pub mod diff_options; pub mod error; mod arg; -- cgit v1.2.3