summaryrefslogtreecommitdiffstats
path: root/wt-status.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-01-23 13:16:28 -0800
committerJunio C Hamano <gitster@pobox.com>2018-01-23 13:16:28 -0800
commitbc3dca07f435ed2ca5a974cdb0508f66cf442412 (patch)
tree14640aaf67159cab0a0d85cb6753c5f9d4dbfd53 /wt-status.h
parentfac64e011f1b1ecabcccf7ad2511efcac3e26bdc (diff)
parent176ea747930908669200520ae14f9dbc61cf0d40 (diff)
downloadgit-bc3dca07f435ed2ca5a974cdb0508f66cf442412.tar.gz
git-bc3dca07f435ed2ca5a974cdb0508f66cf442412.tar.xz
Merge branch 'nd/ita-wt-renames-in-status'
"git status" after moving a path in the working tree (hence making it appear "removed") and then adding with the -N option (hence making that appear "added") detected it as a rename, but did not report the old and new pathnames correctly. * nd/ita-wt-renames-in-status: wt-status.c: handle worktree renames wt-status.c: rename rename-related fields in wt_status_change_data wt-status.c: catch unhandled diff status codes wt-status.c: coding style fix Use DIFF_DETECT_RENAME for detect_rename assignments t2203: test status output with porcelain v2 format
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 fe27b465e..3f84d5c29 100644
--- a/wt-status.h
+++ b/wt-status.h
@@ -44,10 +44,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;
};