From 41a5dd6d8622a67216978131e394148c7fa58b19 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 7 Oct 2016 18:08:56 +0200 Subject: 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 Signed-off-by: Junio C Hamano --- wt-status.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wt-status.h') diff --git a/wt-status.h b/wt-status.h index 68b470983..68e367a23 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 */ -- cgit v1.2.1