From 63861c44c1e4f9d4cf6a7a48fe9534b4f73d0ad7 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 26 Nov 2017 10:24:32 +0200 Subject: DiffEditor: Fix parsing of mode-only change in patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If one of the files has mode-only change, the entire patch fails as a git patch, and is parsed as a text patch. Because of that, the prefixes (a/, b/) are not stripped and jumping to a change by double-clicking does not work. Change-Id: Ib54ce4fa7aad02cb956af1f7de73d3c732ac5a89 Reviewed-by: André Hartmann Reviewed-by: Jarek Kobus --- src/plugins/diffeditor/diffutils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/diffeditor/diffutils.h') diff --git a/src/plugins/diffeditor/diffutils.h b/src/plugins/diffeditor/diffutils.h index 46a8bb40b0..ed0130bfbd 100644 --- a/src/plugins/diffeditor/diffutils.h +++ b/src/plugins/diffeditor/diffutils.h @@ -104,6 +104,7 @@ class DIFFEDITOR_EXPORT FileData { public: enum FileOperation { ChangeFile, + ChangeMode, NewFile, DeleteFile, CopyFile, -- cgit v1.2.1