From a31948384b92a264d01b759510fb8fe71b97ef58 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sun, 22 Sep 2024 12:01:34 -0700 Subject: [PATCH] Tweak name to reflect git internals conventions --- src/options.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/options.rs b/src/options.rs index df1f1d962..5cdeab7ca 100644 --- a/src/options.rs +++ b/src/options.rs @@ -778,10 +778,11 @@ pub(crate) fn parse_args() -> Mode { None, ) } - [old_name, lhs_tmp_file, _lhs_hash, lhs_mode, rhs_tmp_file, _rhs_hash, rhs_mode, new_name, _similarity] => + [old_name, lhs_tmp_file, _lhs_hash, lhs_mode, rhs_tmp_file, _rhs_hash, rhs_mode, new_name, _metainfo] => { // Rename file. // TODO: where does git document these 9 arguments? + // (See run_external_diff() in diff.c in git source code.) let old_name = old_name.to_string_lossy().to_string(); let new_name = new_name.to_string_lossy().to_string();