summaryrefslogtreecommitdiff
path: root/wt-status.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2016-10-07 16:08:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-10-07 16:29:31 (GMT)
commit41a5dd6d8622a67216978131e394148c7fa58b19 (patch)
treeb106e38ff34d9d69a996b13cb0a986ebb332017c /wt-status.h
parentfd84986f467b2556e0675d1df00f83b3a323cf2e (diff)
downloadgit-41a5dd6d8622a67216978131e394148c7fa58b19.zip
git-41a5dd6d8622a67216978131e394148c7fa58b19.tar.gz
git-41a5dd6d8622a67216978131e394148c7fa58b19.tar.bz2
wt-status: export also the has_un{staged,committed}_changes() functions
They will be used in the upcoming rebase helper. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.h')
-rw-r--r--wt-status.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/wt-status.h b/wt-status.h
index 68b4709..68e367a 100644
--- a/wt-status.h
+++ b/wt-status.h
@@ -128,7 +128,9 @@ void status_printf_ln(struct wt_status *s, const char *color, const char *fmt, .
__attribute__((format (printf, 3, 4)))
void status_printf(struct wt_status *s, const char *color, const char *fmt, ...);
-/* The following function expects that the caller took care of reading the index. */
+/* The following functions expect that the caller took care of reading the index. */
+int has_unstaged_changes(void);
+int has_uncommitted_changes(void);
int require_clean_work_tree(const char *action, const char *hint, int gently);
#endif /* STATUS_H */