@@ -311,7 +311,7 @@ pub enum RepositoryState {
311311}
312312
313313/// An enumeration of the possible directions for a remote.
314- #[ derive( Copy , Clone ) ]
314+ #[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
315315pub enum Direction {
316316 /// Data will be fetched (read) from this remote.
317317 Fetch ,
@@ -321,7 +321,7 @@ pub enum Direction {
321321
322322/// An enumeration of the operations that can be performed for the `reset`
323323/// method on a `Repository`.
324- #[ derive( Copy , Clone ) ]
324+ #[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
325325pub enum ResetType {
326326 /// Move the head to the given commit.
327327 Soft ,
@@ -1213,7 +1213,7 @@ impl SubmoduleStatus {
12131213/// These values represent settings for the `submodule.$name.ignore`
12141214/// configuration value which says how deeply to look at the working
12151215/// directory when getting the submodule status.
1216- #[ derive( Debug ) ]
1216+ #[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
12171217pub enum SubmoduleIgnore {
12181218 /// Use the submodule's configuration
12191219 Unspecified ,
@@ -1233,7 +1233,7 @@ pub enum SubmoduleIgnore {
12331233/// configuration value which says how to handle `git submodule update`
12341234/// for this submodule. The value is usually set in the ".gitmodules"
12351235/// file and copied to ".git/config" when the submodule is initialized.
1236- #[ derive( Debug ) ]
1236+ #[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
12371237pub enum SubmoduleUpdate {
12381238 /// The default; when a submodule is updated, checkout the new detached
12391239 /// HEAD to the submodule directory.
@@ -1322,7 +1322,7 @@ impl CheckoutNotificationType {
13221322}
13231323
13241324/// Possible output formats for diff data
1325- #[ derive( Copy , Clone ) ]
1325+ #[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
13261326pub enum DiffFormat {
13271327 /// full git diff
13281328 Patch ,
@@ -1386,7 +1386,7 @@ pub enum FetchPrune {
13861386}
13871387
13881388#[ allow( missing_docs) ]
1389- #[ derive( Debug ) ]
1389+ #[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
13901390pub enum StashApplyProgress {
13911391 /// None
13921392 None ,
0 commit comments