Skip to content

Commit f3d99d6

Browse files
committed
Merge branch 'release/v2025.12'
2 parents 1138ba3 + b65c697 commit f3d99d6

22 files changed

+977
-154
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Supports Windows/macOS/Linux
1212
* Opensource/Free
1313
* Fast
14-
* Deutsch/English/Español/Français/Italiano/Português/Русский/简体中文/繁體中文
14+
* Deutsch/English/Español/Français/Italiano/Português/Русский/简体中文/繁體中文/日本語
1515
* Built-in light/dark themes
1616
* Customize theme
1717
* Visual commit graph

TRANSLATION.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,27 @@ This document shows the translation status of each locale file in the repository
2424

2525
</details>
2626

27-
### ![es__ES](https://img.shields.io/badge/es__ES-99.87%25-yellow)
27+
### ![es__ES](https://img.shields.io/badge/es__ES-%E2%88%9A-brightgreen)
2828

29-
<details>
30-
<summary>Missing keys in es_ES.axaml</summary>
31-
32-
- Text.CopyFullPath
29+
### ![fr__FR](https://img.shields.io/badge/fr__FR-%E2%88%9A-brightgreen)
3330

34-
</details>
35-
36-
### ![fr__FR](https://img.shields.io/badge/fr__FR-99.87%25-yellow)
31+
### ![it__IT](https://img.shields.io/badge/it__IT-99.73%25-yellow)
3732

3833
<details>
39-
<summary>Missing keys in fr_FR.axaml</summary>
34+
<summary>Missing keys in it_IT.axaml</summary>
4035

4136
- Text.CopyFullPath
37+
- Text.Preferences.General.ShowTagsInGraph
4238

4339
</details>
4440

45-
### ![it__IT](https://img.shields.io/badge/it__IT-99.73%25-yellow)
41+
### ![ja__JP](https://img.shields.io/badge/ja__JP-99.73%25-yellow)
4642

4743
<details>
48-
<summary>Missing keys in it_IT.axaml</summary>
44+
<summary>Missing keys in ja_JP.axaml</summary>
4945

50-
- Text.CopyFullPath
51-
- Text.Preferences.General.ShowTagsInGraph
46+
- Text.Repository.FilterCommits
47+
- Text.Repository.Tags.OrderByNameDes
5248

5349
</details>
5450

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025.11
1+
2025.12

src/App.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<ResourceInclude x:Key="zh_CN" Source="/Resources/Locales/zh_CN.axaml"/>
2121
<ResourceInclude x:Key="zh_TW" Source="/Resources/Locales/zh_TW.axaml"/>
2222
<ResourceInclude x:Key="es_ES" Source="/Resources/Locales/es_ES.axaml"/>
23+
<ResourceInclude x:Key="ja_JP" Source="/Resources/Locales/ja_JP.axaml"/>
2324
</ResourceDictionary>
2425
</Application.Resources>
2526

src/Commands/CompareRevisions.cs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ namespace SourceGit.Commands
66
{
77
public partial class CompareRevisions : Command
88
{
9-
[GeneratedRegex(@"^([MADRC])\s+(.+)$")]
9+
[GeneratedRegex(@"^([MADC])\s+(.+)$")]
1010
private static partial Regex REG_FORMAT();
11+
[GeneratedRegex(@"^R[0-9]{0,4}\s+(.+)$")]
12+
private static partial Regex REG_RENAME_FORMAT();
1113

1214
public CompareRevisions(string repo, string start, string end)
1315
{
@@ -38,7 +40,17 @@ protected override void OnReadline(string line)
3840
{
3941
var match = REG_FORMAT().Match(line);
4042
if (!match.Success)
43+
{
44+
match = REG_RENAME_FORMAT().Match(line);
45+
if (match.Success)
46+
{
47+
var renamed = new Models.Change() { Path = match.Groups[1].Value };
48+
renamed.Set(Models.ChangeState.Renamed);
49+
_changes.Add(renamed);
50+
}
51+
4152
return;
53+
}
4254

4355
var change = new Models.Change() { Path = match.Groups[2].Value };
4456
var status = match.Groups[1].Value;
@@ -57,10 +69,6 @@ protected override void OnReadline(string line)
5769
change.Set(Models.ChangeState.Deleted);
5870
_changes.Add(change);
5971
break;
60-
case 'R':
61-
change.Set(Models.ChangeState.Renamed);
62-
_changes.Add(change);
63-
break;
6472
case 'C':
6573
change.Set(Models.ChangeState.Copied);
6674
_changes.Add(change);

src/Commands/QueryStashChanges.cs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ namespace SourceGit.Commands
99
/// </summary>
1010
public partial class QueryStashChanges : Command
1111
{
12-
[GeneratedRegex(@"^([MADRC])\s+(.+)$")]
12+
[GeneratedRegex(@"^([MADC])\s+(.+)$")]
1313
private static partial Regex REG_FORMAT();
14+
[GeneratedRegex(@"^R[0-9]{0,4}\s+(.+)$")]
15+
private static partial Regex REG_RENAME_FORMAT();
1416

1517
public QueryStashChanges(string repo, string stash)
1618
{
@@ -31,7 +33,17 @@ public QueryStashChanges(string repo, string stash)
3133
{
3234
var match = REG_FORMAT().Match(line);
3335
if (!match.Success)
36+
{
37+
match = REG_RENAME_FORMAT().Match(line);
38+
if (match.Success)
39+
{
40+
var renamed = new Models.Change() { Path = match.Groups[1].Value };
41+
renamed.Set(Models.ChangeState.Renamed);
42+
outs.Add(renamed);
43+
}
44+
3445
continue;
46+
}
3547

3648
var change = new Models.Change() { Path = match.Groups[2].Value };
3749
var status = match.Groups[1].Value;
@@ -50,10 +62,6 @@ public QueryStashChanges(string repo, string stash)
5062
change.Set(Models.ChangeState.Deleted);
5163
outs.Add(change);
5264
break;
53-
case 'R':
54-
change.Set(Models.ChangeState.Renamed);
55-
outs.Add(change);
56-
break;
5765
case 'C':
5866
change.Set(Models.ChangeState.Copied);
5967
outs.Add(change);

src/Models/DateTimeFormat.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ public static DateTimeFormat Actived
3232

3333
public static readonly List<DateTimeFormat> Supported = new List<DateTimeFormat>
3434
{
35-
new DateTimeFormat("yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss"),
36-
new DateTimeFormat("yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss"),
37-
new DateTimeFormat("yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss"),
38-
new DateTimeFormat("MM/dd/yyyy", "MM/dd/yyyy HH:mm:ss"),
39-
new DateTimeFormat("MM.dd.yyyy", "MM.dd.yyyy HH:mm:ss"),
40-
new DateTimeFormat("MM-dd-yyyy", "MM-dd-yyyy HH:mm:ss"),
41-
new DateTimeFormat("dd/MM/yyyy", "dd/MM/yyyy HH:mm:ss"),
42-
new DateTimeFormat("dd.MM.yyyy", "dd.MM.yyyy HH:mm:ss"),
43-
new DateTimeFormat("dd-MM-yyyy", "dd-MM-yyyy HH:mm:ss"),
44-
new DateTimeFormat("MMM d yyyy", "MMM d yyyy HH:mm:ss"),
45-
new DateTimeFormat("d MMM yyyy", "d MMM yyyy HH:mm:ss"),
35+
new DateTimeFormat("yyyy/MM/dd", "yyyy/MM/dd, HH:mm:ss"),
36+
new DateTimeFormat("yyyy.MM.dd", "yyyy.MM.dd, HH:mm:ss"),
37+
new DateTimeFormat("yyyy-MM-dd", "yyyy-MM-dd, HH:mm:ss"),
38+
new DateTimeFormat("MM/dd/yyyy", "MM/dd/yyyy, HH:mm:ss"),
39+
new DateTimeFormat("MM.dd.yyyy", "MM.dd.yyyy, HH:mm:ss"),
40+
new DateTimeFormat("MM-dd-yyyy", "MM-dd-yyyy, HH:mm:ss"),
41+
new DateTimeFormat("dd/MM/yyyy", "dd/MM/yyyy, HH:mm:ss"),
42+
new DateTimeFormat("dd.MM.yyyy", "dd.MM.yyyy, HH:mm:ss"),
43+
new DateTimeFormat("dd-MM-yyyy", "dd-MM-yyyy, HH:mm:ss"),
44+
new DateTimeFormat("MMM d yyyy", "MMM d yyyy, HH:mm:ss"),
45+
new DateTimeFormat("d MMM yyyy", "d MMM yyyy, HH:mm:ss"),
4646
};
4747

4848
private static readonly DateTime _example = new DateTime(2025, 1, 31, 8, 0, 0, DateTimeKind.Local);

src/Models/Locales.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class Locale
1717
new Locale("Русский", "ru_RU"),
1818
new Locale("简体中文", "zh_CN"),
1919
new Locale("繁體中文", "zh_TW"),
20+
new Locale("日本語", "ja_JP"),
2021
};
2122

2223
public Locale(string name, string key)

src/Resources/Locales/en_US.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@
719719
<x:String x:Key="Text.WorkingCopy.CommitTip" xml:space="preserve">Trigger click event</x:String>
720720
<x:String x:Key="Text.WorkingCopy.CommitToEdit" xml:space="preserve">Commit (Edit)</x:String>
721721
<x:String x:Key="Text.WorkingCopy.CommitWithAutoStage" xml:space="preserve">Stage all changes and commit</x:String>
722+
<x:String x:Key="Text.WorkingCopy.ConfirmCommitWithFilter">You have staged {0} file(s) but only {1} file(s) displayed ({2} files are filtered out). Do you want to continue?</x:String>
722723
<x:String x:Key="Text.WorkingCopy.ConfirmCommitWithoutFiles" xml:space="preserve">Empty commit detected! Do you want to continue (--allow-empty)?</x:String>
723724
<x:String x:Key="Text.WorkingCopy.Conflicts" xml:space="preserve">CONFLICTS DETECTED</x:String>
724725
<x:String x:Key="Text.WorkingCopy.Conflicts.Resolved" xml:space="preserve">FILE CONFLICTS ARE RESOLVED</x:String>

src/Resources/Locales/es_ES.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
<x:String x:Key="Text.Copy" xml:space="preserve">Copiar</x:String>
190190
<x:String x:Key="Text.CopyAllText" xml:space="preserve">Copiar Todo el Texto</x:String>
191191
<x:String x:Key="Text.CopyPath" xml:space="preserve">Copiar Ruta</x:String>
192+
<x:String x:Key="Text.CopyFullPath" xml:space="preserve">Copiar Ruta Completa</x:String>
192193
<x:String x:Key="Text.CreateBranch" xml:space="preserve">Crear Rama...</x:String>
193194
<x:String x:Key="Text.CreateBranch.BasedOn" xml:space="preserve">Basado En:</x:String>
194195
<x:String x:Key="Text.CreateBranch.Checkout" xml:space="preserve">Checkout de la rama creada</x:String>

0 commit comments

Comments
 (0)