Skip to content

Commit af96284

Browse files
committed
Merge branch 'release/v2025.41'
2 parents 12cd9dd + 31a2833 commit af96284

Some content is hidden

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

76 files changed

+798
-513
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Notify Homebrew Tap
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
notify-homebrew:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Notify Homebrew tap
12+
env:
13+
TAG: ${{ github.event.release.tag_name }}
14+
HOMEBREW_TAP_REPO_TOKEN: ${{ secrets.HOMEBREW_TAP_REPO_TOKEN }}
15+
run: |
16+
echo "📢 Notifying Homebrew tap of new release $TAG..."
17+
curl -X POST \
18+
-H "Authorization: token $HOMEBREW_TAP_REPO_TOKEN" \
19+
-H "Accept: application/vnd.github.v3+json" \
20+
https://api.github.com/repos/ybeapps/homebrew-sourcegit/dispatches \
21+
-d "{\"event_type\":\"new-sourcegit-release\",\"client_payload\":{\"version\":\"$TAG\"}}"
22+
echo "✅ Homebrew tap notified successfully"

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,17 @@ For **Windows** users:
104104
105105
For **macOS** users:
106106

107-
* Thanks [@ybeapps](https://github.com/ybeapps) for making `SourceGit` available on `Homebrew`. You can simply install it with following command:
107+
* Thanks [@ybeapps](https://github.com/ybeapps) for making `SourceGit` available on `Homebrew`:
108108
```shell
109-
brew tap ybeapps/homebrew-sourcegit
110-
brew install --cask --no-quarantine sourcegit
109+
brew install --cask sourcegit
111110
```
112111
* If you want to install `SourceGit.app` from GitHub Release manually, you need run following command to make sure it works:
113112
```shell
114113
sudo xattr -cr /Applications/SourceGit.app
115114
```
115+
> [!NOTE]
116+
> macOS packages in the `Release` page of this project are all unsigned. If you are worried about potential security issues with the above command, you can download the signed package from the [distribution repository](https://github.com/ybeapps/homebrew-sourcegit/releases) provided by [@ybeapps](https://github.com/ybeapps) (there is no need to execute the above command while installing `SourceGit`).
117+
116118
* Make sure [git-credential-manager](https://github.com/git-ecosystem/git-credential-manager/releases) is installed on your mac.
117119
* You can run `echo $PATH > ~/Library/Application\ Support/SourceGit/PATH` to generate a custom PATH env file to introduce `PATH` env to SourceGit.
118120

THIRD-PARTY-LICENSES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ The project uses the following third-party libraries or assets
3535
### OpenAI .NET SDK
3636

3737
- **Source**: https://github.com/openai/openai-dotnet
38-
- **Version**: 2.5.0
38+
- **Version**: 2.8.0
3939
- **License**: MIT License
4040
- **License Link**: https://github.com/openai/openai-dotnet/blob/main/LICENSE
4141

4242
### Azure.AI.OpenAI
4343

4444
- **Source**: https://github.com/Azure/azure-sdk-for-net
45-
- **Version**: 2.5.0-beta.1
45+
- **Version**: 2.8.0-beta.1
4646
- **License**: MIT License
4747
- **License Link**: https://github.com/Azure/azure-sdk-for-net/blob/main/LICENSE.txt
4848

@@ -56,7 +56,7 @@ The project uses the following third-party libraries or assets
5656
### Pfim
5757

5858
- **Source**: https://github.com/nickbabcock/Pfim
59-
- **Version**: 0.11.3
59+
- **Version**: 0.11.4
6060
- **License**: MIT License
6161
- **License Link**: https://github.com/nickbabcock/Pfim/blob/master/LICENSE.txt
6262

TRANSLATION.md

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,7 @@ This document shows the translation status of each locale file in the repository
2525

2626
</details>
2727

28-
### ![es__ES](https://img.shields.io/badge/es__ES-98.69%25-yellow)
29-
30-
<details>
31-
<summary>Missing keys in es_ES.axaml</summary>
32-
33-
- Text.Hotkeys.Global.ShowWorkspaceDropdownMenu
34-
- Text.PageTabBar.Tab.MoveToWorkspace
35-
- Text.PageTabBar.Tab.Refresh
36-
- Text.Preferences.DiffMerge.DiffArgs
37-
- Text.Preferences.DiffMerge.DiffArgs.Tip
38-
- Text.Preferences.DiffMerge.MergeArgs
39-
- Text.Preferences.DiffMerge.MergeArgs.Tip
40-
- Text.Preferences.Shell.Args
41-
- Text.Preferences.Shell.Args.Tip
42-
- Text.SquashOrFixup.Squash
43-
- Text.SquashOrFixup.Fixup
44-
- Text.SquashOrFixup.Into
45-
46-
</details>
28+
### ![es__ES](https://img.shields.io/badge/es__ES-%E2%88%9A-brightgreen)
4729

4830
### ![fr__FR](https://img.shields.io/badge/fr__FR-98.04%25-yellow)
4931

@@ -71,7 +53,7 @@ This document shows the translation status of each locale file in the repository
7153

7254
</details>
7355

74-
### ![id__ID](https://img.shields.io/badge/id__ID-95.87%25-yellow)
56+
### ![id__ID](https://img.shields.io/badge/id__ID-95.86%25-yellow)
7557

7658
<details>
7759
<summary>Missing keys in id_ID.axaml</summary>
@@ -117,7 +99,7 @@ This document shows the translation status of each locale file in the repository
11799

118100
</details>
119101

120-
### ![it__IT](https://img.shields.io/badge/it__IT-93.25%25-yellow)
102+
### ![it__IT](https://img.shields.io/badge/it__IT-93.24%25-yellow)
121103

122104
<details>
123105
<summary>Missing keys in it_IT.axaml</summary>
@@ -187,7 +169,7 @@ This document shows the translation status of each locale file in the repository
187169

188170
</details>
189171

190-
### ![ja__JP](https://img.shields.io/badge/ja__JP-74.86%25-red)
172+
### ![ja__JP](https://img.shields.io/badge/ja__JP-75.03%25-yellow)
191173

192174
<details>
193175
<summary>Missing keys in ja_JP.axaml</summary>
@@ -226,7 +208,6 @@ This document shows the translation status of each locale file in the repository
226208
- Text.ChangeSubmoduleUrl
227209
- Text.ChangeSubmoduleUrl.Submodule
228210
- Text.ChangeSubmoduleUrl.URL
229-
- Text.Checkout.RecurseSubmodules
230211
- Text.Checkout.WarnLostCommits
231212
- Text.Checkout.WithFastForward
232213
- Text.Checkout.WithFastForward.Upstream
@@ -345,7 +326,6 @@ This document shows the translation status of each locale file in the repository
345326
- Text.Preferences.Git.UseLibsecret
346327
- Text.Preferences.Shell.Args
347328
- Text.Preferences.Shell.Args.Tip
348-
- Text.Pull.RecurseSubmodules
349329
- Text.Push.New
350330
- Text.Push.Revision
351331
- Text.Push.Revision.Title
@@ -426,7 +406,7 @@ This document shows the translation status of each locale file in the repository
426406

427407
</details>
428408

429-
### ![ko__KR](https://img.shields.io/badge/ko__KR-96.19%25-yellow)
409+
### ![ko__KR](https://img.shields.io/badge/ko__KR-96.18%25-yellow)
430410

431411
<details>
432412
<summary>Missing keys in ko_KR.axaml</summary>
@@ -469,7 +449,7 @@ This document shows the translation status of each locale file in the repository
469449

470450
</details>
471451

472-
### ![pt__BR](https://img.shields.io/badge/pt__BR-68.66%25-red)
452+
### ![pt__BR](https://img.shields.io/badge/pt__BR-68.81%25-red)
473453

474454
<details>
475455
<summary>Missing keys in pt_BR.axaml</summary>
@@ -515,7 +495,6 @@ This document shows the translation status of each locale file in the repository
515495
- Text.ChangeSubmoduleUrl
516496
- Text.ChangeSubmoduleUrl.Submodule
517497
- Text.ChangeSubmoduleUrl.URL
518-
- Text.Checkout.RecurseSubmodules
519498
- Text.Checkout.WarnLostCommits
520499
- Text.Checkout.WithFastForward
521500
- Text.Checkout.WithFastForward.Upstream
@@ -667,7 +646,6 @@ This document shows the translation status of each locale file in the repository
667646
- Text.Preferences.Git.UseLibsecret
668647
- Text.Preferences.Shell.Args
669648
- Text.Preferences.Shell.Args.Tip
670-
- Text.Pull.RecurseSubmodules
671649
- Text.Push.New
672650
- Text.Push.Revision
673651
- Text.Push.Revision.Title
@@ -765,16 +743,9 @@ This document shows the translation status of each locale file in the repository
765743

766744
</details>
767745

768-
### ![ru__RU](https://img.shields.io/badge/ru__RU-99.89%25-yellow)
769-
770-
<details>
771-
<summary>Missing keys in ru_RU.axaml</summary>
772-
773-
- Text.Preferences.DiffMerge.DiffArgs
774-
775-
</details>
746+
### ![ru__RU](https://img.shields.io/badge/ru__RU-%E2%88%9A-brightgreen)
776747

777-
### ![ta__IN](https://img.shields.io/badge/ta__IN-74.97%25-red)
748+
### ![ta__IN](https://img.shields.io/badge/ta__IN-75.14%25-yellow)
778749

779750
<details>
780751
<summary>Missing keys in ta_IN.axaml</summary>
@@ -813,7 +784,6 @@ This document shows the translation status of each locale file in the repository
813784
- Text.ChangeSubmoduleUrl
814785
- Text.ChangeSubmoduleUrl.Submodule
815786
- Text.ChangeSubmoduleUrl.URL
816-
- Text.Checkout.RecurseSubmodules
817787
- Text.Checkout.WarnLostCommits
818788
- Text.Checkout.WithFastForward
819789
- Text.Checkout.WithFastForward.Upstream
@@ -932,7 +902,6 @@ This document shows the translation status of each locale file in the repository
932902
- Text.Preferences.Git.UseLibsecret
933903
- Text.Preferences.Shell.Args
934904
- Text.Preferences.Shell.Args.Tip
935-
- Text.Pull.RecurseSubmodules
936905
- Text.Push.New
937906
- Text.Push.Revision
938907
- Text.Push.Revision.Title
@@ -1012,7 +981,7 @@ This document shows the translation status of each locale file in the repository
1012981

1013982
</details>
1014983

1015-
### ![uk__UA](https://img.shields.io/badge/uk__UA-76.06%25-yellow)
984+
### ![uk__UA](https://img.shields.io/badge/uk__UA-76.23%25-yellow)
1016985

1017986
<details>
1018987
<summary>Missing keys in uk_UA.axaml</summary>
@@ -1050,7 +1019,6 @@ This document shows the translation status of each locale file in the repository
10501019
- Text.ChangeSubmoduleUrl
10511020
- Text.ChangeSubmoduleUrl.Submodule
10521021
- Text.ChangeSubmoduleUrl.URL
1053-
- Text.Checkout.RecurseSubmodules
10541022
- Text.Checkout.WarnLostCommits
10551023
- Text.Checkout.WithFastForward
10561024
- Text.Checkout.WithFastForward.Upstream
@@ -1165,7 +1133,6 @@ This document shows the translation status of each locale file in the repository
11651133
- Text.Preferences.Git.UseLibsecret
11661134
- Text.Preferences.Shell.Args
11671135
- Text.Preferences.Shell.Args.Tip
1168-
- Text.Pull.RecurseSubmodules
11691136
- Text.Push.New
11701137
- Text.Push.Revision
11711138
- Text.Push.Revision.Title

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025.40
1+
2025.41

src/Commands/Add.cs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,11 @@
22
{
33
public class Add : Command
44
{
5-
public Add(string repo, bool includeUntracked)
6-
{
7-
WorkingDirectory = repo;
8-
Context = repo;
9-
Args = includeUntracked ? "add ." : "add -u .";
10-
}
11-
12-
public Add(string repo, Models.Change change)
13-
{
14-
WorkingDirectory = repo;
15-
Context = repo;
16-
Args = $"add -- {change.Path.Quoted()}";
17-
}
18-
195
public Add(string repo, string pathspecFromFile)
206
{
217
WorkingDirectory = repo;
228
Context = repo;
23-
Args = $"add --pathspec-from-file={pathspecFromFile.Quoted()}";
9+
Args = $"add --force --verbose --pathspec-from-file={pathspecFromFile.Quoted()}";
2410
}
2511
}
2612
}

src/Commands/Command.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ protected ProcessStartInfo CreateGitStartInfo(bool redirect)
181181

182182
// If an SSH private key was provided, sets the environment.
183183
if (!start.Environment.ContainsKey("GIT_SSH_COMMAND") && !string.IsNullOrEmpty(SSHKey))
184-
start.Environment.Add("GIT_SSH_COMMAND", $"ssh -i '{SSHKey}'");
184+
start.Environment.Add("GIT_SSH_COMMAND", $"ssh -i '{SSHKey}' -F '/dev/null'");
185185

186186
// Force using en_US.UTF-8 locale
187187
if (OperatingSystem.IsLinux())

src/Commands/Diff.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,22 @@ public Diff(string repo, Models.DiffOption opt, int unified, bool ignoreWhitespa
4646
proc.StartInfo = CreateGitStartInfo(true);
4747
proc.Start();
4848

49-
while (await proc.StandardOutput.ReadLineAsync().ConfigureAwait(false) is { } line)
49+
var text = await proc.StandardOutput.ReadToEndAsync().ConfigureAwait(false);
50+
51+
var start = 0;
52+
var end = text.IndexOf('\n', start);
53+
while (end > 0)
54+
{
55+
var line = text[start..end];
5056
ParseLine(line);
5157

58+
start = end + 1;
59+
end = text.IndexOf('\n', start);
60+
}
61+
62+
if (start < text.Length)
63+
ParseLine(text[start..]);
64+
5265
await proc.WaitForExitAsync().ConfigureAwait(false);
5366
}
5467
catch

src/Commands/Discard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static async Task ChangesAsync(string repo, List<Models.Change> changes,
8686
{
8787
var pathSpecFile = Path.GetTempFileName();
8888
await File.WriteAllLinesAsync(pathSpecFile, restores).ConfigureAwait(false);
89-
await new Restore(repo, pathSpecFile, false).Use(log).ExecAsync().ConfigureAwait(false);
89+
await new Restore(repo, pathSpecFile).Use(log).ExecAsync().ConfigureAwait(false);
9090
File.Delete(pathSpecFile);
9191
}
9292
}

src/Commands/Fetch.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ public Fetch(string repo, string remote, bool noTags, bool force)
2222
Args = builder.ToString();
2323
}
2424

25+
public Fetch(string repo, string remote)
26+
{
27+
_remote = remote;
28+
29+
WorkingDirectory = repo;
30+
Context = repo;
31+
RaiseError = false;
32+
33+
Args = $"fetch --progress --verbose {remote}";
34+
}
35+
2536
public Fetch(string repo, Models.Branch local, Models.Branch remote)
2637
{
2738
_remote = remote.Remote;

0 commit comments

Comments
 (0)