Skip to content

Commit 36e035d

Browse files
committed
Merge branch 'release/v8.24'
2 parents b7c6d62 + f02642b commit 36e035d

File tree

127 files changed

+2285
-442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+2285
-442
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,41 @@ jobs:
9999
with:
100100
name: sourcegit.linux-x64
101101
path: sourcegit.linux-x64.tar
102+
build-linux-arm64:
103+
name: Build Linux (arm64)
104+
runs-on: ubuntu-20.04
105+
steps:
106+
- name: Checkout sources
107+
uses: actions/checkout@v4
108+
with:
109+
fetch-depth: 0
110+
- name: Setup .NET
111+
uses: actions/setup-dotnet@v4
112+
with:
113+
dotnet-version: 8.0.x
114+
- name: Configure arm64 packages
115+
run: |
116+
sudo dpkg --add-architecture arm64
117+
echo 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted
118+
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted
119+
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-backports main restricted' \
120+
| sudo tee /etc/apt/sources.list.d/arm64.list
121+
sudo sed -i -e 's/^deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
122+
sudo sed -i -e 's/^deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
123+
- name: Install cross-compiling dependencies
124+
run: |
125+
sudo apt-get update
126+
sudo apt-get install clang llvm gcc-aarch64-linux-gnu zlib1g-dev:arm64
127+
- name: Build
128+
run: dotnet build -c Release
129+
- name: Publish
130+
run: dotnet publish src/SourceGit.csproj -c Release -o publish -r linux-arm64
131+
- name: Rename Executable File
132+
run: mv publish/SourceGit publish/sourcegit
133+
- name: Packing Program
134+
run: tar -cvf sourcegit.linux-arm64.tar -C publish/ .
135+
- name: Upload Artifact
136+
uses: actions/upload-artifact@v4
137+
with:
138+
name: sourcegit.linux-arm64
139+
path: sourcegit.linux-arm64.tar

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Opensource Git GUI client.
77
* Supports Windows/macOS/Linux
88
* Opensource/Free
99
* Fast
10-
* English/简体中文/繁體中文
10+
* English/German/Português/简体中文/繁體中文
1111
* Built-in light/dark themes
1212
* Customize theme
1313
* Visual commit graph
@@ -110,6 +110,8 @@ This app supports open repository in external tools listed in the table below.
110110

111111
## Contributing
112112

113+
Everyone is welcome to submit a PR. Please make sure your PR is based on the latest `develop` branch and the target branch of PR is `develop`.
114+
113115
Thanks to all the people who contribute.
114116

115117
[![Contributors](https://contrib.rocks/image?repo=sourcegit-scm/sourcegit&columns=10)](https://github.com/sourcegit-scm/sourcegit/graphs/contributors)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.23
1+
8.24

build/resources/_common/applications/sourcegit.desktop

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ Exec=/opt/sourcegit/sourcegit
55
Icon=/usr/share/icons/sourcegit.png
66
Terminal=false
77
Type=Application
8-
Categories=Development
8+
Categories=Development
9+
MimeType=inode/directory;

src/App.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
<ResourceInclude Source="/Resources/Themes.axaml"/>
1212
</ResourceDictionary.MergedDictionaries>
1313

14+
<ResourceInclude x:Key="de_DE" Source="/Resources/Locales/de_DE.axaml"/>
1415
<ResourceInclude x:Key="en_US" Source="/Resources/Locales/en_US.axaml"/>
16+
<ResourceInclude x:Key="pt_BR" Source="/Resources/Locales/pt_BR.axaml"/>
1517
<ResourceInclude x:Key="zh_CN" Source="/Resources/Locales/zh_CN.axaml"/>
1618
<ResourceInclude x:Key="zh_TW" Source="/Resources/Locales/zh_TW.axaml"/>
1719
</ResourceDictionary>

src/App.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ public static async void CopyText(string data)
208208
{
209209
if (Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
210210
{
211-
if (desktop.MainWindow?.Clipboard is { } clipbord)
212-
await clipbord.SetTextAsync(data);
211+
if (desktop.MainWindow?.Clipboard is { } clipboard)
212+
await clipboard.SetTextAsync(data);
213213
}
214214
}
215215

src/Commands/Blame.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ namespace SourceGit.Commands
66
{
77
public partial class Blame : Command
88
{
9-
109
[GeneratedRegex(@"^\^?([0-9a-f]+)\s+.*\((.*)\s+(\d+)\s+[\-\+]?\d+\s+\d+\) (.*)")]
1110
private static partial Regex REG_FORMAT();
1211

src/Commands/Config.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,16 @@ public bool Set(string key, string value, bool allowEmpty = false)
5050
if (!allowEmpty && string.IsNullOrWhiteSpace(value))
5151
{
5252
if (string.IsNullOrEmpty(WorkingDirectory))
53-
{
5453
Args = $"config --global --unset {key}";
55-
}
5654
else
57-
{
5855
Args = $"config --unset {key}";
59-
}
6056
}
6157
else
6258
{
6359
if (string.IsNullOrWhiteSpace(WorkingDirectory))
64-
{
6560
Args = $"config --global {key} \"{value}\"";
66-
}
6761
else
68-
{
6962
Args = $"config {key} \"{value}\"";
70-
}
7163
}
7264

7365
return Exec();

src/Commands/Diff.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,9 @@ public Models.DiffResult Result()
3838
ProcessInlineHighlights();
3939

4040
if (_result.TextDiff.Lines.Count == 0)
41-
{
4241
_result.TextDiff = null;
43-
}
4442
else
45-
{
4643
_result.TextDiff.MaxLineNumber = Math.Max(_newLine, _oldLine);
47-
}
4844
}
4945

5046
return _result;

src/Commands/Discard.cs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@ public static void All(string repo)
1111
new Clean(repo).Exec();
1212
}
1313

14-
public static void ChangesInWorkTree(string repo, List<Models.Change> changes)
14+
public static void Changes(string repo, List<Models.Change> changes)
1515
{
1616
var needClean = new List<string>();
1717
var needCheckout = new List<string>();
1818

1919
foreach (var c in changes)
2020
{
2121
if (c.WorkTree == Models.ChangeState.Untracked || c.WorkTree == Models.ChangeState.Added)
22-
{
2322
needClean.Add(c.Path);
24-
}
2523
else
26-
{
2724
needCheckout.Add(c.Path);
28-
}
2925
}
3026

3127
for (int i = 0; i < needClean.Count; i += 10)
@@ -40,17 +36,5 @@ public static void ChangesInWorkTree(string repo, List<Models.Change> changes)
4036
new Restore(repo, needCheckout.GetRange(i, count), "--worktree --recurse-submodules").Exec();
4137
}
4238
}
43-
44-
public static void ChangesInStaged(string repo, List<Models.Change> changes)
45-
{
46-
for (int i = 0; i < changes.Count; i += 10)
47-
{
48-
var count = Math.Min(10, changes.Count - i);
49-
var files = new List<string>();
50-
for (int j = 0; j < count; j++)
51-
files.Add(changes[i + j].Path);
52-
new Restore(repo, files, "--staged --worktree --recurse-submodules").Exec();
53-
}
54-
}
5539
}
5640
}

0 commit comments

Comments
 (0)