Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7624b91

Browse files
committed
errors: add EDIRECTORY
This is to be returned when the operation which the user asked for is not possible to do on a directory.
1 parent e48dd86 commit 7624b91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/git2/errors.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ typedef enum {
4848
GIT_EEOF = -20, /**< Unexpected EOF */
4949
GIT_EINVALID = -21, /**< Invalid operation or input */
5050
GIT_EUNCOMMITTED = -22, /**< Uncommitted changes in index prevented operation */
51+
GIT_EDIRECTORY = -23, /**< The operation is not valid for a directory */
5152

5253
GIT_PASSTHROUGH = -30, /**< Internal only */
5354
GIT_ITEROVER = -31, /**< Signals end of iteration with iterator */

0 commit comments

Comments
 (0)