summaryrefslogtreecommitdiff
path: root/wt-status.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2017-12-27 10:18:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-27 20:38:35 (GMT)
commit5134ccde642ae9ed6a244c92864c26734d100f4c (patch)
treecacd116618cf1b1b809e4a6d55bbefb69f38e36e /wt-status.h
parentea56f97749f6ded2b5d41c4c4ba41b53850b2872 (diff)
downloadgit-5134ccde642ae9ed6a244c92864c26734d100f4c.zip
git-5134ccde642ae9ed6a244c92864c26734d100f4c.tar.gz
git-5134ccde642ae9ed6a244c92864c26734d100f4c.tar.bz2
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 8a38647..e87ee2d 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;
};