@@ -419,7 +419,7 @@ pub enum FileFavor {
419
419
420
420
bitflags ! {
421
421
/// Orderings that may be specified for Revwalk iteration.
422
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
422
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
423
423
pub struct Sort : u32 {
424
424
/// Sort the repository contents in no particular ordering.
425
425
///
@@ -454,7 +454,7 @@ impl Sort {
454
454
455
455
bitflags ! {
456
456
/// Types of credentials that can be requested by a credential callback.
457
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
457
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
458
458
pub struct CredentialType : u32 {
459
459
#[ allow( missing_docs) ]
460
460
const USER_PASS_PLAINTEXT = raw:: GIT_CREDTYPE_USERPASS_PLAINTEXT as u32 ;
@@ -491,7 +491,7 @@ impl Default for CredentialType {
491
491
492
492
bitflags ! {
493
493
/// Flags for the `flags` field of an IndexEntry.
494
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
494
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
495
495
pub struct IndexEntryFlag : u16 {
496
496
/// Set when the `extended_flags` field is valid.
497
497
const EXTENDED = raw:: GIT_INDEX_ENTRY_EXTENDED as u16 ;
@@ -507,7 +507,7 @@ impl IndexEntryFlag {
507
507
508
508
bitflags ! {
509
509
/// Flags for the `extended_flags` field of an IndexEntry.
510
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
510
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
511
511
pub struct IndexEntryExtendedFlag : u16 {
512
512
/// An "intent to add" entry from "git add -N"
513
513
const INTENT_TO_ADD = raw:: GIT_INDEX_ENTRY_INTENT_TO_ADD as u16 ;
@@ -527,7 +527,7 @@ impl IndexEntryExtendedFlag {
527
527
528
528
bitflags ! {
529
529
/// Flags for APIs that add files matching pathspec
530
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
530
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
531
531
pub struct IndexAddOption : u32 {
532
532
#[ allow( missing_docs) ]
533
533
const DEFAULT = raw:: GIT_INDEX_ADD_DEFAULT as u32 ;
@@ -559,7 +559,7 @@ impl Default for IndexAddOption {
559
559
560
560
bitflags ! {
561
561
/// Flags for `Repository::open_ext`
562
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
562
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
563
563
pub struct RepositoryOpenFlags : u32 {
564
564
/// Only open the specified path; don't walk upward searching.
565
565
const NO_SEARCH = raw:: GIT_REPOSITORY_OPEN_NO_SEARCH as u32 ;
@@ -584,7 +584,7 @@ impl RepositoryOpenFlags {
584
584
585
585
bitflags ! {
586
586
/// Flags for the return value of `Repository::revparse`
587
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
587
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
588
588
pub struct RevparseMode : u32 {
589
589
/// The spec targeted a single object
590
590
const SINGLE = raw:: GIT_REVPARSE_SINGLE as u32 ;
@@ -603,7 +603,7 @@ impl RevparseMode {
603
603
604
604
bitflags ! {
605
605
/// The results of `merge_analysis` indicating the merge opportunities.
606
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
606
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
607
607
pub struct MergeAnalysis : u32 {
608
608
/// No merge is possible.
609
609
const ANALYSIS_NONE = raw:: GIT_MERGE_ANALYSIS_NONE as u32 ;
@@ -634,7 +634,7 @@ impl MergeAnalysis {
634
634
635
635
bitflags ! {
636
636
/// The user's stated preference for merges.
637
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
637
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
638
638
pub struct MergePreference : u32 {
639
639
/// No configuration was found that suggests a preferred behavior for
640
640
/// merge.
@@ -656,7 +656,7 @@ impl MergePreference {
656
656
657
657
bitflags ! {
658
658
/// Flags controlling the behavior of ODB lookup operations
659
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
659
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
660
660
pub struct OdbLookupFlags : u32 {
661
661
/// Don't call `git_odb_refresh` if the lookup fails. Useful when doing
662
662
/// a batch of lookup operations for objects that may legitimately not
@@ -668,7 +668,7 @@ bitflags! {
668
668
669
669
bitflags ! {
670
670
/// How to handle reference updates.
671
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
671
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
672
672
pub struct RemoteUpdateFlags : u32 {
673
673
/// Write the fetch results to FETCH_HEAD.
674
674
const UPDATE_FETCHHEAD = raw:: GIT_REMOTE_UPDATE_FETCHHEAD as u32 ;
@@ -1023,7 +1023,7 @@ bitflags! {
1023
1023
/// represents the status of file in the index relative to the HEAD, and the
1024
1024
/// `STATUS_WT_*` set of flags represent the status of the file in the
1025
1025
/// working directory relative to the index.
1026
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1026
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
1027
1027
pub struct Status : u32 {
1028
1028
#[ allow( missing_docs) ]
1029
1029
const CURRENT = raw:: GIT_STATUS_CURRENT as u32 ;
@@ -1074,7 +1074,7 @@ impl Status {
1074
1074
1075
1075
bitflags ! {
1076
1076
/// Mode options for RepositoryInitOptions
1077
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1077
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
1078
1078
pub struct RepositoryInitMode : u32 {
1079
1079
/// Use permissions configured by umask - the default
1080
1080
const SHARED_UMASK = raw:: GIT_REPOSITORY_INIT_SHARED_UMASK as u32 ;
@@ -1207,7 +1207,7 @@ bitflags! {
1207
1207
/// Lastly, the following will only be returned for ignore "NONE".
1208
1208
///
1209
1209
/// * WD_UNTRACKED - workdir contains untracked files
1210
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1210
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
1211
1211
pub struct SubmoduleStatus : u32 {
1212
1212
#[ allow( missing_docs) ]
1213
1213
const IN_HEAD = raw:: GIT_SUBMODULE_STATUS_IN_HEAD as u32 ;
@@ -1304,7 +1304,7 @@ pub enum SubmoduleUpdate {
1304
1304
1305
1305
bitflags ! {
1306
1306
/// ...
1307
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1307
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
1308
1308
pub struct PathspecFlags : u32 {
1309
1309
/// Use the default pathspec matching configuration.
1310
1310
const DEFAULT = raw:: GIT_PATHSPEC_DEFAULT as u32 ;
@@ -1350,7 +1350,7 @@ impl Default for PathspecFlags {
1350
1350
1351
1351
bitflags ! {
1352
1352
/// Types of notifications emitted from checkouts.
1353
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1353
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
1354
1354
pub struct CheckoutNotificationType : u32 {
1355
1355
/// Notification about a conflict.
1356
1356
const CONFLICT = raw:: GIT_CHECKOUT_NOTIFY_CONFLICT as u32 ;
@@ -1392,7 +1392,7 @@ pub enum DiffFormat {
1392
1392
1393
1393
bitflags ! {
1394
1394
/// Formatting options for diff stats
1395
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1395
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
1396
1396
pub struct DiffStatsFormat : raw:: git_diff_stats_format_t {
1397
1397
/// Don't generate any stats
1398
1398
const NONE = raw:: GIT_DIFF_STATS_NONE ;
@@ -1463,7 +1463,7 @@ pub enum StashApplyProgress {
1463
1463
1464
1464
bitflags ! {
1465
1465
#[ allow( missing_docs) ]
1466
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1466
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
1467
1467
pub struct StashApplyFlags : u32 {
1468
1468
#[ allow( missing_docs) ]
1469
1469
const DEFAULT = raw:: GIT_STASH_APPLY_DEFAULT as u32 ;
@@ -1486,7 +1486,7 @@ impl Default for StashApplyFlags {
1486
1486
1487
1487
bitflags ! {
1488
1488
#[ allow( missing_docs) ]
1489
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1489
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
1490
1490
pub struct StashFlags : u32 {
1491
1491
#[ allow( missing_docs) ]
1492
1492
const DEFAULT = raw:: GIT_STASH_DEFAULT as u32 ;
@@ -1519,7 +1519,7 @@ impl Default for StashFlags {
1519
1519
1520
1520
bitflags ! {
1521
1521
#[ allow( missing_docs) ]
1522
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1522
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
1523
1523
pub struct AttrCheckFlags : u32 {
1524
1524
/// Check the working directory, then the index.
1525
1525
const FILE_THEN_INDEX = raw:: GIT_ATTR_CHECK_FILE_THEN_INDEX as u32 ;
@@ -1540,7 +1540,7 @@ impl Default for AttrCheckFlags {
1540
1540
1541
1541
bitflags ! {
1542
1542
#[ allow( missing_docs) ]
1543
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1543
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
1544
1544
pub struct DiffFlags : u32 {
1545
1545
/// File(s) treated as binary data.
1546
1546
const BINARY = raw:: GIT_DIFF_FLAG_BINARY as u32 ;
@@ -1562,7 +1562,7 @@ impl DiffFlags {
1562
1562
1563
1563
bitflags ! {
1564
1564
/// Options for [`Reference::normalize_name`].
1565
- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1565
+ #[ derive( Clone , Copy , Debug , Eq , PartialEq , PartialOrd , Ord , Hash ) ]
1566
1566
pub struct ReferenceFormat : u32 {
1567
1567
/// No particular normalization.
1568
1568
const NORMAL = raw:: GIT_REFERENCE_FORMAT_NORMAL as u32 ;
0 commit comments