From ba43121d235a6c85388738552a63a9c11488b650 Mon Sep 17 00:00:00 2001 From: Caleb Owens Date: Thu, 15 May 2025 23:20:08 +0200 Subject: [PATCH] Added comments to describe the add flags --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 541277bfba..28f0887b82 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -529,9 +529,9 @@ bitflags! { /// Flags for APIs that add files matching pathspec #[derive(Clone, Copy, Debug, Eq, PartialEq, PartialOrd, Ord, Hash)] pub struct IndexAddOption: u32 { - #[allow(missing_docs)] + /// Adds files that are not ignored to the index const DEFAULT = raw::GIT_INDEX_ADD_DEFAULT as u32; - #[allow(missing_docs)] + /// Allows adding otherwise ignored files to the index const FORCE = raw::GIT_INDEX_ADD_FORCE as u32; #[allow(missing_docs)] const DISABLE_PATHSPEC_MATCH =