diff --git a/src/Resources/Locales/de_DE.axaml b/src/Resources/Locales/de_DE.axaml
index 886a07cf..4869a456 100644
--- a/src/Resources/Locales/de_DE.axaml
+++ b/src/Resources/Locales/de_DE.axaml
@@ -56,7 +56,6 @@
Benutzerdefinierte Aktion
Lösche ${0}$...
Lösche alle ausgewählten {0} Branches
- Alle Änderungen verwerfen
Fast-Forward zu ${0}$
Fetche ${0}$ in ${1}$ hinein...
Git Flow - Abschließen ${0}$
@@ -583,6 +582,7 @@
WEITER
Benutzerdefinierte Aktionen
Keine benutzerdefinierten Aktionen
+ Alle Änderungen verwerfen
Aktiviere '--reflog' Option
Öffne im Datei-Browser
Suche Branches/Tags/Submodule
diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml
index 07ebc675..80462d25 100644
--- a/src/Resources/Locales/en_US.axaml
+++ b/src/Resources/Locales/en_US.axaml
@@ -52,7 +52,6 @@
Custom Action
Delete ${0}$...
Delete selected {0} branches
- Discard all changes
Fast-Forward to ${0}$
Fetch ${0}$ into ${1}$...
Git Flow - Finish ${0}$
@@ -590,10 +589,12 @@
Cleanup(GC & Prune)
Run `git gc` command for this repository.
Clear all
+ Clear
Configure this repository
CONTINUE
Custom Actions
No Custom Actions
+ Discard all changes
Enable '--reflog' Option
Open in File Browser
Search Branches/Tags/Submodules
diff --git a/src/Resources/Locales/es_ES.axaml b/src/Resources/Locales/es_ES.axaml
index 513eeb06..44b024dd 100644
--- a/src/Resources/Locales/es_ES.axaml
+++ b/src/Resources/Locales/es_ES.axaml
@@ -56,7 +56,6 @@
Acción personalizada
Eliminar ${0}$...
Eliminar {0} ramas seleccionadas
- Descartar todos los cambios
Fast-Forward a ${0}$
Fetch ${0}$ en ${1}$...
Git Flow - Finalizar ${0}$
@@ -597,6 +596,7 @@
CONTINUAR
Acciones Personalizadas
No hay ninguna Acción Personalizada
+ Descartar todos los cambios
Habilitar Opción '--reflog'
Abrir en el Explorador
Buscar Ramas/Etiquetas/Submódulos
diff --git a/src/Resources/Locales/fr_FR.axaml b/src/Resources/Locales/fr_FR.axaml
index 0c3ab91b..c076afbd 100644
--- a/src/Resources/Locales/fr_FR.axaml
+++ b/src/Resources/Locales/fr_FR.axaml
@@ -49,7 +49,6 @@
Action personnalisée
Supprimer ${0}$...
Supprimer {0} branches sélectionnées
- Rejeter tous les changements
Fast-Forward vers ${0}$
Fetch ${0}$ vers ${1}$...
Git Flow - Terminer ${0}$
@@ -562,6 +561,7 @@
CONTINUER
Actions personnalisées
Pas d'actions personnalisées
+ Rejeter tous les changements
Activer l'option '--reflog'
Ouvrir dans l'explorateur de fichiers
Rechercher Branches/Tags/Submodules
diff --git a/src/Resources/Locales/it_IT.axaml b/src/Resources/Locales/it_IT.axaml
index 23c31c6e..5f82a2e8 100644
--- a/src/Resources/Locales/it_IT.axaml
+++ b/src/Resources/Locales/it_IT.axaml
@@ -56,7 +56,6 @@
Azione personalizzata
Elimina ${0}$...
Elimina i {0} branch selezionati
- Scarta tutte le modifiche
Avanzamento Veloce a ${0}$
Recupera ${0}$ in ${1}$...
Git Flow - Completa ${0}$
@@ -586,6 +585,7 @@
CONTINUA
Azioni Personalizzate
Nessuna Azione Personalizzata
+ Scarta tutte le modifiche
Abilita opzione '--reflog'
Apri nell'Esplora File
Cerca Branch/Tag/Sottomodulo
diff --git a/src/Resources/Locales/ja_JP.axaml b/src/Resources/Locales/ja_JP.axaml
index ca29b985..c128b03a 100644
--- a/src/Resources/Locales/ja_JP.axaml
+++ b/src/Resources/Locales/ja_JP.axaml
@@ -49,7 +49,6 @@
カスタムアクション
${0}$を削除...
選択中の{0}個のブランチを削除
- すべての変更を破棄
${0}$ へ早送りする
${0}$ から ${1}$ へフェッチする
Git Flow - Finish ${0}$
@@ -562,6 +561,7 @@
続ける
カスタムアクション
カスタムアクションがありません
+ すべての変更を破棄
`--reflog` オプションを有効化
ファイルブラウザーで開く
ブランチ/タグ/サブモジュールを検索
diff --git a/src/Resources/Locales/pt_BR.axaml b/src/Resources/Locales/pt_BR.axaml
index 7ce861e9..ed91ea46 100644
--- a/src/Resources/Locales/pt_BR.axaml
+++ b/src/Resources/Locales/pt_BR.axaml
@@ -42,7 +42,6 @@
Copiar Nome do Branch
Excluir ${0}$...
Excluir {0} branches selecionados
- Descartar todas as alterações
Fast-Forward para ${0}$
Buscar ${0}$ em ${1}$...
Git Flow - Finalizar ${0}$
@@ -518,6 +517,7 @@
CONTINUAR
Ações customizada
Nenhuma ação customizada
+ Descartar todas as alterações
Habilitar opção '--reflog'
Abrir no Navegador de Arquivos
Pesquisar Branches/Tags/Submódulos
diff --git a/src/Resources/Locales/ru_RU.axaml b/src/Resources/Locales/ru_RU.axaml
index bc72fd65..f9d6b28e 100644
--- a/src/Resources/Locales/ru_RU.axaml
+++ b/src/Resources/Locales/ru_RU.axaml
@@ -56,7 +56,6 @@
Изменить действие
Удалить ${0}$...
Удалить выбранные {0} ветки
- Отклонить все изменения.
Перемотать вперёд к ${0}$
Извлечь ${0}$ в ${1}$...
Git-процесс - Завершение ${0}$
@@ -598,6 +597,7 @@
ПРОДОЛЖИТЬ
Изменить действия
Не изменять действия
+ Отклонить все изменения.
Разрешить опцию --reflog
Открыть в файловом менеджере
Поиск веток, меток и подмодулей
diff --git a/src/Resources/Locales/ta_IN.axaml b/src/Resources/Locales/ta_IN.axaml
index 71df97c0..685434a1 100644
--- a/src/Resources/Locales/ta_IN.axaml
+++ b/src/Resources/Locales/ta_IN.axaml
@@ -49,7 +49,6 @@
தனிப்பயன் செயல்
${0}$ ஐ நீக்கு...
தேர்ந்தெடுக்கப்பட்ட {0} கிளைகளை நீக்கு
- எல்லா மாற்றங்களையும் நிராகரி
${0}$ இதற்கு வேகமாக முன்னோக்கிச் செல்
${0}$ ஐ ${1}$இல் பெறு...
அறிவிலி ஓட்டம் - முடி ${0}$
@@ -564,6 +563,7 @@
தனிப்பயன் செயல்கள் இல்லை
'--குறிபதிவு' விருப்பத்தை இயக்கு
கோப்பு உலாவியில் திற
+ எல்லா மாற்றங்களையும் நிராகரி
கிளைகள்/குறிச்சொற்கள்/துணைத் தொகுதிகளைத் தேடு
வரைபடத்தில் தெரிவுநிலை
அமைவை நீக்கு
diff --git a/src/Resources/Locales/uk_UA.axaml b/src/Resources/Locales/uk_UA.axaml
index 297878a6..cfd0dcb4 100644
--- a/src/Resources/Locales/uk_UA.axaml
+++ b/src/Resources/Locales/uk_UA.axaml
@@ -49,7 +49,6 @@
Спеціальна дія
Видалити ${0}$...
Видалити вибрані {0} гілок
- Скасувати всі зміни
Перемотати до ${0}$
Отримати ${0}$ в ${1}$...
Git Flow - Завершити ${0}$
@@ -566,6 +565,7 @@
ПРОДОВЖИТИ
Спеціальні дії
Немає спеціальних дій
+ Скасувати всі зміни
Увімкнути опцію '--reflog'
Відкрити у файловому менеджері
Пошук гілок/тегів/підмодулів
diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml
index 2703f5a2..75b5435d 100644
--- a/src/Resources/Locales/zh_CN.axaml
+++ b/src/Resources/Locales/zh_CN.axaml
@@ -56,7 +56,6 @@
自定义操作
删除 ${0}$...
删除选中的 {0} 个分支
- 放弃所有更改
快进(fast-forward)到 ${0}$
拉取(fetch) ${0}$ 至 ${1}$...
GIT工作流 - 完成 ${0}$
@@ -594,10 +593,12 @@
清理本仓库(GC)
本操作将执行`git gc`命令。
清空过滤规则
+ 清空
配置本仓库
下一步
自定义操作
自定义操作未设置
+ 放弃所有更改
启用 --reflog 选项
在文件浏览器中打开
快速查找分支/标签/子模块
diff --git a/src/Resources/Locales/zh_TW.axaml b/src/Resources/Locales/zh_TW.axaml
index f810ea15..b9328e73 100644
--- a/src/Resources/Locales/zh_TW.axaml
+++ b/src/Resources/Locales/zh_TW.axaml
@@ -56,7 +56,6 @@
自訂動作
刪除 ${0}$...
刪除所選的 {0} 個分支
- 捨棄所有變更
快轉 (fast-forward) 到 ${0}$
提取 (fetch) ${0}$ 到 ${1}$...
Git 工作流 - 完成 ${0}$
@@ -594,10 +593,12 @@
清理本存放庫 (GC)
本操作將執行 `git gc` 命令。
清空篩選規則
+ 清空
設定本存放庫
下一步
自訂動作
沒有自訂的動作
+ 捨棄所有變更
啟用 [--reflog] 選項
在檔案瀏覽器中開啟
快速搜尋分支/標籤/子模組
diff --git a/src/ViewModels/Repository.cs b/src/ViewModels/Repository.cs
index b02cf36a..8e86e895 100644
--- a/src/ViewModels/Repository.cs
+++ b/src/ViewModels/Repository.cs
@@ -1766,6 +1766,18 @@ namespace SourceGit.ViewModels
return menu;
}
+ public void DiscardAllChanges()
+ {
+ if (CanCreatePopup())
+ ShowPopup(new Discard(this));
+ }
+
+ public void ClearStashes()
+ {
+ if (CanCreatePopup())
+ ShowPopup(new ClearStashes(this));
+ }
+
public ContextMenu CreateContextMenuForLocalBranch(Models.Branch branch)
{
var menu = new ContextMenu();
@@ -1785,19 +1797,6 @@ namespace SourceGit.ViewModels
{
if (!IsBare)
{
- var discard = new MenuItem();
- discard.Header = App.Text("BranchCM.DiscardAll");
- discard.Icon = App.CreateMenuIcon("Icons.Undo");
- discard.Click += (_, e) =>
- {
- if (CanCreatePopup())
- ShowPopup(new Discard(this));
- e.Handled = true;
- };
-
- menu.Items.Add(discard);
- menu.Items.Add(new MenuItem() { Header = "-" });
-
if (!string.IsNullOrEmpty(branch.Upstream))
{
var upstream = branch.Upstream.Substring(13);
@@ -1828,6 +1827,7 @@ namespace SourceGit.ViewModels
};
menu.Items.Add(fastForward);
+ menu.Items.Add(new MenuItem() { Header = "-" });
menu.Items.Add(pull);
}
}
diff --git a/src/ViewModels/StashesPage.cs b/src/ViewModels/StashesPage.cs
index a9952711..c4263329 100644
--- a/src/ViewModels/StashesPage.cs
+++ b/src/ViewModels/StashesPage.cs
@@ -272,12 +272,6 @@ namespace SourceGit.ViewModels
return menu;
}
- public void Clear()
- {
- if (_repo.CanCreatePopup())
- _repo.ShowPopup(new ClearStashes(_repo));
- }
-
public void ClearSearchFilter()
{
SearchFilter = string.Empty;
@@ -303,8 +297,8 @@ namespace SourceGit.ViewModels
}
private Repository _repo = null;
- private List _stashes = new List();
- private List _visibleStashes = new List();
+ private List _stashes = [];
+ private List _visibleStashes = [];
private string _searchFilter = string.Empty;
private Models.Stash _selectedStash = null;
private List _changes = null;
diff --git a/src/Views/Repository.axaml b/src/Views/Repository.axaml
index 6a09a549..21c1b780 100644
--- a/src/Views/Repository.axaml
+++ b/src/Views/Repository.axaml
@@ -129,7 +129,7 @@
-
+
+
-
+
+
diff --git a/src/Views/StashesPage.axaml b/src/Views/StashesPage.axaml
index 27305aac..15427b93 100644
--- a/src/Views/StashesPage.axaml
+++ b/src/Views/StashesPage.axaml
@@ -19,20 +19,12 @@
-
+
-