diff options
author | Jens Lehmann <Jens.Lehmann@web.de> | 2010-03-08 13:53:19 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-08 15:49:23 -0800 |
commit | 9297f77e6d350f33de961e149dc33c77e7392db4 (patch) | |
tree | 6ef83ac56865487414747ff0756fad64d9b3c7cc /wt-status.h | |
parent | c7e1a73641e24340bf93f6f1792220fa9154cda3 (diff) | |
download | git-9297f77e6d350f33de961e149dc33c77e7392db4.tar.gz git-9297f77e6d350f33de961e149dc33c77e7392db4.tar.xz |
git status: Show detailed dirty status of submodules in long format
Since 1.7.0 there are three reasons a submodule is considered modified
against the work tree: It contains new commits, modified content or
untracked content. Lets show all reasons in the long format of git status,
so the user can better asses the nature of the modification. This change
does not affect the short and porcelain formats.
Two new members are added to "struct wt_status_change_data" to store the
information gathered by run_diff_files(). wt-status.c uses the new flag
DIFF_OPT_DIRTY_SUBMODULES to tell diff-lib.c it wants to get detailed
dirty information about submodules.
A hint line for submodules is printed in the dirty header when dirty
submodules are present.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.h')
-rw-r--r-- | wt-status.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wt-status.h b/wt-status.h index c60f40a34..91206739f 100644 --- a/wt-status.h +++ b/wt-status.h @@ -25,6 +25,8 @@ struct wt_status_change_data { int index_status; int stagemask; char *head_path; + unsigned dirty_submodule : 2; + unsigned new_submodule_commits : 1; }; struct wt_status { |