summaryrefslogtreecommitdiffstats
path: root/wt-status.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2017-12-27 17:18:38 +0700
committerJunio C Hamano <gitster@pobox.com>2017-12-27 12:38:35 -0800
commit5134ccde642ae9ed6a244c92864c26734d100f4c (patch)
treecacd116618cf1b1b809e4a6d55bbefb69f38e36e /wt-status.h
parentea56f97749f6ded2b5d41c4c4ba41b53850b2872 (diff)
downloadgit-5134ccde642ae9ed6a244c92864c26734d100f4c.tar.gz
git-5134ccde642ae9ed6a244c92864c26734d100f4c.tar.xz
wt-status.c: rename rename-related fields in wt_status_change_data
These field "head_path" is used for rename display only. In the next patch we introduce another rename pair where the rename source is no longer HEAD. Rename it to something more generic. While at there, rename "score" as well and store the rename diff code in a separate field instead of hardcoding key[0] (i.e. diff-index) in porcelain v2 code. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.h')
-rw-r--r--wt-status.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/wt-status.h b/wt-status.h
index 8a3864783..e87ee2de6 100644
--- a/wt-status.h
+++ b/wt-status.h
@@ -38,10 +38,11 @@ struct wt_status_change_data {
int worktree_status;
int index_status;
int stagemask;
- int score;
int mode_head, mode_index, mode_worktree;
struct object_id oid_head, oid_index;
- char *head_path;
+ int rename_status;
+ int rename_score;
+ char *rename_source;
unsigned dirty_submodule : 2;
unsigned new_submodule_commits : 1;
};