diff options
| author | Teddy Wing | 2020-08-30 02:56:23 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2020-08-30 02:56:23 +0200 | 
| commit | 61e582cf930bfa0bbc20c5c7c3c4b3a6098ce53e (patch) | |
| tree | d7ee279237928990253cf4a393437ef9b621a912 /src | |
| parent | da974e4d4ce45ee7798b53b52b3a152dfb56eaae (diff) | |
| download | git-suggestion-61e582cf930bfa0bbc20c5c7c3c4b3a6098ce53e.tar.bz2 | |
diff_options: Sort and uniq `FLAGS`
Make the list easier to scan by ordering it alphabetically. Also, I
noticed there were two `-p` flags listed, so ran the flags through
`uniq`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/diff_options.rs | 161 | 
1 files changed, 80 insertions, 81 deletions
| diff --git a/src/diff_options.rs b/src/diff_options.rs index 2a5edcb..1b6fe76 100644 --- a/src/diff_options.rs +++ b/src/diff_options.rs @@ -14,105 +14,104 @@  // along with this program. If not, see <https://www.gnu.org/licenses/>. -static FLAGS: [&'static str; 98] = [ -    "-p", -    "--no-stat", -    "-p", -    "-u", -    "--patch", -    "-s", -    "--no-patch", -    "--raw", -    "--patch-with-raw", -    "-t", -    "--indent-heuristic", -    "--no-indent-heuristic", -    "--minimal", -    "--patience", -    "--histogram", +static FLAGS: [&'static str; 97] = [ +    "--abbrev", +    "--anchored", +    "--binary", +    "--break-rewrites", +    "--check", +    "--color", +    "--color-moved", +    "--color-moved-ws", +    "--color-words",      "--compact-summary", -    "--numstat", -    "--shortstat",      "--cumulative", -    "--summary", -    "--patch-with-stat", -    "-z", +    "--diff-algorithm", +    "--diff-filter", +    "--dirstat", +    "--dirstat-by-file", +    "--dst-prefix", +    "--exit-code", +    "--ext-diff", +    "--find-copies", +    "--find-copies-harder", +    "--find-object", +    "--find-renames", +    "--full-index", +    "--function-context", +    "--histogram", +    "--ignore-all-space", +    "--ignore-blank-lines", +    "--ignore-cr-at-eol", +    "--ignore-space-at-eol", +    "--ignore-space-change", +    "--ignore-submodules", +    "--indent-heuristic", +    "--inter-hunk-context", +    "--irreversible-delete", +    "--ita-invisible-in-index", +    "--line-prefix", +    "--minimal",      "--name-only",      "--name-status",      "--no-color",      "--no-color-moved",      "--no-color-moved-ws", -    "--no-renames", -    "--rename-empty", -    "--no-rename-empty", -    "--check", -    "--full-index", -    "--binary", -    "--find-copies-harder", -    "-D", -    "--irreversible-delete", -    "--pickaxe-all", -    "--pickaxe-regex", -    "-R", -    "--no-relative", -    "-a", -    "--text", -    "--ignore-cr-at-eol", -    "--ignore-space-at-eol", -    "-b", -    "--ignore-space-change", -    "-w", -    "--ignore-all-space", -    "--ignore-blank-lines", -    "-W", -    "--function-context", -    "--exit-code", -    "--quiet", -    "--ext-diff",      "--no-ext-diff", -    "--textconv", -    "--no-textconv", +    "--no-indent-heuristic", +    "--no-patch",      "--no-prefix", -    "--ita-invisible-in-index", -    "-U", -    "--unified", +    "--no-relative", +    "--no-rename-empty", +    "--no-renames", +    "--no-stat", +    "--no-textconv", +    "--numstat",      "--output", +    "--output-indicator-context",      "--output-indicator-new",      "--output-indicator-old", -    "--output-indicator-context", -    "--anchored", -    "--diff-algorithm", -    "--color-moved-ws", -    "--word-diff-regex", -    "--ws-error-highlight", -    "-l", -    "-S", -    "-G", -    "--find-object", -    "-O", -    "--inter-hunk-context", +    "--patch", +    "--patch-with-raw", +    "--patch-with-stat", +    "--patience", +    "--pickaxe-all", +    "--pickaxe-regex", +    "--quiet", +    "--raw", +    "--relative", +    "--rename-empty", +    "--shortstat",      "--src-prefix", -    "--dst-prefix", -    "--line-prefix",      "--stat", -    "-X", -    "--dirstat", -    "--dirstat-by-file",      "--submodule", -    "--color", -    "--color-moved", +    "--summary", +    "--text", +    "--textconv", +    "--unified",      "--word-diff", -    "--color-words", -    "--abbrev", +    "--word-diff-regex", +    "--ws-error-highlight",      "-B", -    "--break-rewrites", -    "-M", -    "--find-renames",      "-C", -    "--find-copies", -    "--diff-filter", -    "--relative", -    "--ignore-submodules", +    "-D", +    "-G", +    "-M", +    "-O", +    "-R", +    "-S", +    "-U", +    "-W", +    "-X", +    "-a", +    "-b", +    "-l", +    "-p", +    "-s", +    "-t", +    "-u", +    "-w", +    "-z",  ]; | 
