Skip to content

Commit 3af024b

Browse files
CopilotByron
andcommitted
Add comprehensive documentation and final refinements
Co-authored-by: Byron <[email protected]>
1 parent 0813edf commit 3af024b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/gitbutler-error/src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ pub enum Code {
139139
SecretKeychainNotFound,
140140
MissingLoginKeychain,
141141
GitForcePushProtection,
142+
/// When trying to open a project that is not in a git repository,
143+
/// this error code is used to trigger special handling in the frontend.
144+
/// The frontend will show a modal offering to initialize a git repository.
142145
NonGitRepository,
143146
}
144147

0 commit comments

Comments
 (0)