Commit 196d54c7a4390ec63e4f70f8a32ea627863acd3b

Stefan Sperling 2019-05-15T07:15:27

define message for error code GOT_ERR_DIR_NOT_EMPTY

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/include/got_error.h b/include/got_error.h
index a5adad9..5672559 100644
--- a/include/got_error.h
+++ b/include/got_error.h
@@ -171,6 +171,7 @@ static const struct got_error {
 	{ GOT_ERR_COMMIT_OUT_OF_DATE, "work tree must be updated before these "
 	    "changes can be committed" },
 	{ GOT_ERR_COMMIT_MSG_EMPTY, "commit message cannot be empty" },
+	{ GOT_ERR_DIR_NOT_EMPTY, "directory exists and is not empty" },
 	{ GOT_ERR_COMMIT_NO_CHANGES, "no changes to commit" },
 	{ GOT_ERR_BRANCH_MOVED,	"work tree's branch reference has moved; "
 	    "new branch or rebase required" },