Skip to content

Commit 8e28f2a

Browse files
committed
Export also the has_un{staged,committed}_changed() functions
They will be used in the upcoming rebase helper. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 0bfd9cc commit 8e28f2a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

wt-status.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,7 @@ void wt_porcelain_print(struct wt_status *s)
17361736
/**
17371737
* Returns 1 if there are unstaged changes, 0 otherwise.
17381738
*/
1739-
static int has_unstaged_changes()
1739+
int has_unstaged_changes()
17401740
{
17411741
struct rev_info rev_info;
17421742
int result;
@@ -1752,7 +1752,7 @@ static int has_unstaged_changes()
17521752
/**
17531753
* Returns 1 if there are uncommitted changes, 0 otherwise.
17541754
*/
1755-
static int has_uncommitted_changes()
1755+
int has_uncommitted_changes()
17561756
{
17571757
struct rev_info rev_info;
17581758
int result;

wt-status.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ void status_printf_ln(struct wt_status *s, const char *color, const char *fmt, .
109109
__attribute__((format (printf, 3, 4)))
110110
void status_printf(struct wt_status *s, const char *color, const char *fmt, ...);
111111

112+
int has_unstaged_changes();
113+
int has_uncommitted_changes();
112114
int require_clean_work_tree(const char *action, const char *hint, int gently);
113115

114116
#endif /* STATUS_H */

0 commit comments

Comments
 (0)