Skip to content

Commit 38c3449

Browse files
committed
Make enum in includes C90 compliant by removing trailing comma.
1 parent 5221e18 commit 38c3449

38 files changed

+72
-72
lines changed

include/git2/apply.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ typedef enum {
5959
* Don't actually make changes, just test that the patch applies.
6060
* This is the equivalent of `git apply --check`.
6161
*/
62-
GIT_APPLY_CHECK = (1 << 0),
62+
GIT_APPLY_CHECK = (1 << 0)
6363
} git_apply_flags_t;
6464

6565
/**
@@ -127,7 +127,7 @@ typedef enum {
127127
* Apply the patch to both the working directory and the index.
128128
* This is the equivalent of `git apply --index`.
129129
*/
130-
GIT_APPLY_LOCATION_BOTH = 2,
130+
GIT_APPLY_LOCATION_BOTH = 2
131131
} git_apply_location_t;
132132

133133
/**

include/git2/attr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ typedef enum {
8383
GIT_ATTR_VALUE_UNSPECIFIED = 0, /**< The attribute has been left unspecified */
8484
GIT_ATTR_VALUE_TRUE, /**< The attribute has been set */
8585
GIT_ATTR_VALUE_FALSE, /**< The attribute has been unset */
86-
GIT_ATTR_VALUE_STRING, /**< This attribute has a value */
86+
GIT_ATTR_VALUE_STRING /**< This attribute has a value */
8787
} git_attr_value_t;
8888

8989
/**

include/git2/blame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ typedef enum {
7373
GIT_BLAME_USE_MAILMAP = (1<<5),
7474

7575
/** Ignore whitespace differences */
76-
GIT_BLAME_IGNORE_WHITESPACE = (1<<6),
76+
GIT_BLAME_IGNORE_WHITESPACE = (1<<6)
7777
} git_blame_flag_t;
7878

7979
/**

include/git2/blob.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ typedef enum {
119119
* When set, filters will be loaded from a `.gitattributes` file
120120
* in the specified commit.
121121
*/
122-
GIT_BLOB_FILTER_ATTRIBUTES_FROM_COMMIT = (1 << 3),
122+
GIT_BLOB_FILTER_ATTRIBUTES_FROM_COMMIT = (1 << 3)
123123
} git_blob_filter_flag_t;
124124

125125
/**

include/git2/cert.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ typedef enum git_cert_t {
4444
* information about the certificate. This is used when using
4545
* curl.
4646
*/
47-
GIT_CERT_STRARRAY,
47+
GIT_CERT_STRARRAY
4848
} git_cert_t;
4949

5050
/**
@@ -82,7 +82,7 @@ typedef enum {
8282
/** SHA-256 is available */
8383
GIT_CERT_SSH_SHA256 = (1 << 2),
8484
/** Raw hostkey is available */
85-
GIT_CERT_SSH_RAW = (1 << 3),
85+
GIT_CERT_SSH_RAW = (1 << 3)
8686
} git_cert_ssh_t;
8787

8888
typedef enum {

include/git2/checkout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ typedef enum {
190190
/** Recursively checkout submodules with same options (NOT IMPLEMENTED) */
191191
GIT_CHECKOUT_UPDATE_SUBMODULES = (1u << 16),
192192
/** Recursively checkout submodules if HEAD moved in super repo (NOT IMPLEMENTED) */
193-
GIT_CHECKOUT_UPDATE_SUBMODULES_IF_CHANGED = (1u << 17),
193+
GIT_CHECKOUT_UPDATE_SUBMODULES_IF_CHANGED = (1u << 17)
194194

195195
} git_checkout_strategy_t;
196196

include/git2/clone.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ typedef enum {
4949
* Bypass the git-aware transport, but do not try to use
5050
* hardlinks.
5151
*/
52-
GIT_CLONE_LOCAL_NO_LINKS,
52+
GIT_CLONE_LOCAL_NO_LINKS
5353
} git_clone_local_t;
5454

5555
/**

include/git2/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ typedef enum {
147147
* If set, libgit2 was built with support for sub-second resolution in file
148148
* modification times.
149149
*/
150-
GIT_FEATURE_NSEC = (1 << 3),
150+
GIT_FEATURE_NSEC = (1 << 3)
151151
} git_feature_t;
152152

153153
/**

include/git2/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ typedef enum {
5555
/** Represents the highest level available config file (i.e. the most
5656
* specific config file available that actually is loaded)
5757
*/
58-
GIT_CONFIG_HIGHEST_LEVEL = -1,
58+
GIT_CONFIG_HIGHEST_LEVEL = -1
5959
} git_config_level_t;
6060

6161
/**

include/git2/credential.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ typedef enum {
7575
*
7676
* @see git_credential_ssh_key_memory_new
7777
*/
78-
GIT_CREDENTIAL_SSH_MEMORY = (1u << 6),
78+
GIT_CREDENTIAL_SSH_MEMORY = (1u << 6)
7979
} git_credential_t;
8080

8181
/**

0 commit comments

Comments
 (0)