diff --git a/src/Resources/Locales/de_DE.axaml b/src/Resources/Locales/de_DE.axaml
index e29309a7..89b377aa 100644
--- a/src/Resources/Locales/de_DE.axaml
+++ b/src/Resources/Locales/de_DE.axaml
@@ -176,11 +176,9 @@
Template Name:
BENUTZERDEFINIERTE AKTION
Argumente:
- Vordefinierte Parameter: ${REPO} - Repository Pfad; ${BRANCH} - selektierter Branch; ${SHA} - Hash des selektierten Commits; ${TAG} - selektiertes Tag
Ausführbare Datei:
Eingabe-Steuerelemente:
Bearbeiten
- $1, $2 ... können als Argumente in Eingabe-Steuerelementen benutzt werden
Name:
Geltungsbereich:
Branch
diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml
index ea7a338a..0fa9c847 100644
--- a/src/Resources/Locales/en_US.axaml
+++ b/src/Resources/Locales/en_US.axaml
@@ -173,11 +173,18 @@
Template Name:
CUSTOM ACTION
Arguments:
- Built-in parameters: ${REPO} - repository's path; ${REMOTE} - selected remote or selected branch's remote; ${BRANCH} - selected branch; ${SHA} - selected commit's hash; ${TAG} - selected tag
+ Built-in parameters:
+
+ ${REPO} Repository's path
+ ${REMOTE} Selected remote or selected branch's remote
+ ${BRANCH} Selected branch, without ${REMOTE} part for remote branches
+ ${BRANCH_FRIENDLY_NAME} Firendly name of selected branch, contains ${REMOTE} part for remote branches
+ ${SHA} Selected commit's hash
+ ${TAG} Selected tag
+ $1, $2 ... Input control values
Executable File:
Input Controls:
Edit
- You can use $1, $2 ... in arguments for input control values
Name:
Scope:
Branch
diff --git a/src/Resources/Locales/es_ES.axaml b/src/Resources/Locales/es_ES.axaml
index 8fd80ac7..9c9aae18 100644
--- a/src/Resources/Locales/es_ES.axaml
+++ b/src/Resources/Locales/es_ES.axaml
@@ -177,11 +177,9 @@
Nombre de la Plantilla:
ACCIÓN PERSONALIZADA
Argumentos:
- Parámetros incorporados: ${REPO} - ruta del repositorio; ${BRANCH} - rama seleccionada; ${SHA} - hash del commit seleccionado; ${TAG} - etiqueta seleccionada
Archivo Ejecutable:
Controles de entrada:
Editar
- Puedes usar $1, $2 ... en argumentos, para valores de los controles de entrada
Nombre:
Alcance:
Rama
diff --git a/src/Resources/Locales/ru_RU.axaml b/src/Resources/Locales/ru_RU.axaml
index 08c9d982..8a4f48a9 100644
--- a/src/Resources/Locales/ru_RU.axaml
+++ b/src/Resources/Locales/ru_RU.axaml
@@ -177,11 +177,9 @@
Название:
ПОЛЬЗОВАТЕЛЬСКОЕ ДЕЙСТВИЕ
Аргументы:
- Встроенные параметры: ${REPO} — путь к репозиторию; ${BRANCH} — выбранная ветка; ${SHA} — хеш выбранной ревизии; ${TAG} — выбранная метка
Исполняемый файл:
Элементы управления вводом:
Редактор
- Вы можете использовать $1, $2 ... в аргументах для значений элемента управления вводом
Имя:
Диапазон:
Ветка
diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml
index aeb6e040..d9cc3cd1 100644
--- a/src/Resources/Locales/zh_CN.axaml
+++ b/src/Resources/Locales/zh_CN.axaml
@@ -177,11 +177,18 @@
模板名 :
自定义操作
命令行参数 :
- 内置变量:${REPO} 仓库路径、${REMOTE} 选中的远程仓库或选中分支所属的远程仓库、${BRANCH} 选中的分支、${SHA} 选中的提交哈希,${TAG} 选中的标签
+ 内置变量:
+
+ ${REPO} 仓库路径
+ ${REMOTE} 选中的远程仓库或选中分支所属的远程仓库
+ ${BRANCH} 选中的分支,对于远程分支不包含远程名
+ ${BRANCH_FRIENDLY_NAME} 选中的分支,对于远程分支包含远程名
+ ${SHA} 选中的提交哈希
+ ${TAG} 选中的标签
+ $1, $2 ... 输入控件中填写的值
可执行文件路径 :
输入控件 :
编辑
- 请在命令行参数中使用 $1, $2 等占位符表示输入控件的值
名称 :
作用目标 :
选中的分支
diff --git a/src/Resources/Locales/zh_TW.axaml b/src/Resources/Locales/zh_TW.axaml
index be23c8e0..f7f4697b 100644
--- a/src/Resources/Locales/zh_TW.axaml
+++ b/src/Resources/Locales/zh_TW.axaml
@@ -177,11 +177,18 @@
範本名稱:
自訂動作
指令參數:
- 內建參數: ${REPO} 存放庫路徑、${REMOTE} 所選的遠端存放庫或所選分支的遠端、${BRANCH} 所選的分支、${SHA} 所選的提交編號、${TAG} 所選的標籤
+ 內建參數:
+
+ ${REPO} 存放庫路徑
+ ${REMOTE} 所選的遠端存放庫或所選分支的遠端
+ ${BRANCH} 所選的分支。對於遠端分支,不包含遠端名稱
+ ${BRANCH_FRIENDLY_NAME} 所選的分支。對於遠端分支,不包含遠端名稱
+ ${SHA} 所選的提交編號
+ ${TAG} 所選的標籤
+ $1, $2 ... 輸入控制項中的值
可執行檔案路徑:
輸入控制項:
編輯
- 請使用 $1、$2 等變數來代表輸入控制項的值
名稱:
執行範圍:
選取的分支
diff --git a/src/ViewModels/ExecuteCustomAction.cs b/src/ViewModels/ExecuteCustomAction.cs
index 837259a7..e08bb3c0 100644
--- a/src/ViewModels/ExecuteCustomAction.cs
+++ b/src/ViewModels/ExecuteCustomAction.cs
@@ -182,7 +182,7 @@ namespace SourceGit.ViewModels
return Target switch
{
- Models.Branch b => org.Replace("${BRANCH}", b.FriendlyName).Replace("${REMOTE}", b.Remote),
+ Models.Branch b => org.Replace("${BRANCH_FRIENDLY_NAME}", b.FriendlyName).Replace("${BRANCH}", b.Name).Replace("${REMOTE}", b.Remote),
Models.Commit c => org.Replace("${SHA}", c.SHA),
Models.Tag t => org.Replace("${TAG}", t.Name),
Models.Remote r => org.Replace("${REMOTE}", r.Name),
diff --git a/src/Views/Preferences.axaml b/src/Views/Preferences.axaml
index 90df4323..cdb0940a 100644
--- a/src/Views/Preferences.axaml
+++ b/src/Views/Preferences.axaml
@@ -559,10 +559,10 @@
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Views/RepositoryConfigure.axaml b/src/Views/RepositoryConfigure.axaml
index 14dc3bc1..167d6815 100644
--- a/src/Views/RepositoryConfigure.axaml
+++ b/src/Views/RepositoryConfigure.axaml
@@ -388,7 +388,7 @@
-
+
@@ -483,19 +483,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+