T19 Git: diffs unified and split with word marks and folds, three-way merge and conflict resolver, changes list and commit input, commit graph and list, branch selector, branch, tag and stash lists, blame with annotation, file history, pull request card, review thread, diff stat and status badge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
de1c03746e
commit
d083e87493
31 files changed
+4166
-21
No files matched your search
+13
-2
@@ -25,7 +25,18 @@ pub enum GitStatus {
|
||||
}
|
||||
|
||||
impl GitStatus {
|
||||
fn letter(self) -> &'static str {
|
||||
pub(crate) fn word(self) -> &'static str {
|
||||
match self {
|
||||
Self::Modified => "Modified",
|
||||
Self::Added => "Added",
|
||||
Self::Deleted => "Deleted",
|
||||
Self::Untracked => "Untracked",
|
||||
Self::Renamed => "Renamed",
|
||||
Self::Conflicted => "Conflicted",
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn letter(self) -> &'static str {
|
||||
match self {
|
||||
Self::Modified => "M",
|
||||
Self::Added => "A",
|
||||
@@ -36,7 +47,7 @@ impl GitStatus {
|
||||
}
|
||||
}
|
||||
|
||||
fn tone(self) -> Tone {
|
||||
pub(crate) fn tone(self) -> Tone {
|
||||
match self {
|
||||
Self::Modified => Tone::Warning,
|
||||
Self::Added | Self::Untracked => Tone::Success,
|
||||
|
||||
Reference in new issue
Block a user