Commit Graph

34 Commits

Author SHA1 Message Date
leo
a2f47dfcac code_style: remove warnings reported by JetBrains Rider
Signed-off-by: leo <longshuang@msn.cn>
2025-08-21 23:38:24 +08:00
leo
6a8bde412a fix: sometimes %ct of branch returns empty string (#1715)
Signed-off-by: leo <longshuang@msn.cn>
2025-08-11 19:06:31 +08:00
Nathan Baulch
5c9d96fe7a refactor: streamline certain string operations (#1540) 2025-07-07 17:36:41 +08:00
leo
40765826ce code_review: PR #1492
- Remove all synchronous method in commands
- `Command.ReadToEndAsync` now is protected method
- Rename `ResultAsync` to `GetResultAsync`
- Call `ConfigureAwait(false)` when there's no context

Signed-off-by: leo <longshuang@msn.cn>
2025-07-03 17:30:06 +08:00
Nathan Baulch
463e304491 feature: async (#1492)
* Async command methods
* Async `Task.Run` where possible
* Remove redundant `Task.Run` in `Sure` methods
* Remove leftover braces and reformat
* Async event handlers as needed
2025-07-03 15:38:39 +08:00
Nathan Baulch
d404f6dbe2 code_style: general cleanup (#1428) 2025-06-18 09:29:18 +08:00
leo
46231a759c code_style: run dotnet format
Signed-off-by: leo <longshuang@msn.cn>
2025-05-28 15:17:05 +08:00
leo
cfc80d41a1 fix: sometimes track status is not correct because the local branch name is ambiguous to git
Signed-off-by: leo <longshuang@msn.cn>
2025-05-26 09:42:46 +08:00
leo
7bb4e355bd feature: show branches count in branch tree (#1306) 2025-05-13 19:28:52 +08:00
leo
e45e37d305 feature: supports sort branches by committer date (#1192)
Signed-off-by: leo <longshuang@msn.cn>
2025-05-06 18:24:34 +08:00
Gadfly
17cf402c78 enhance: navigate to upstream head after fetch, pull, and merge (#1180) 2025-04-14 10:42:34 +08:00
leo
808302ce84 code_review: PR #1106
- Use new syntex `[...]` instead of `new char[] {...}` to create char arrays
- Use `string.ReplaceLineEndings('\n').Split('\n')` instead of `string.Split(['\n', '\r'], StringSplitOptions.RemoveEmptyEntries)` because that the `Signer` part may be missing

Signed-off-by: leo <longshuang@msn.cn>
2025-03-17 20:35:31 +08:00
leo
0f9087fac6 code_review: PR #1078
- Remove `ForceEnglishLocale` because we want all `git` outputs in English
- Remove locale settings for `ExecuteCustomAction`

Signed-off-by: leo <longshuang@msn.cn>
2025-03-10 20:08:42 +08:00
Gadfly
860f52153b fix: Force English locale in branch query command. (#1078) 2025-03-10 20:05:37 +08:00
leo
53f591bdad ux: add a warning icon when the tracking upstream of a local branch is gone (#1006)
Co-authored-by: Davide Tentori <dtentori@softeam.it>
2025-02-20 10:14:25 +08:00
leo
5bad969bb7 refactor: use '\0' instead of '$' to split fields 2024-10-15 16:26:44 +08:00
leo
f2f8a64b84 refactor: read git output once time instead of line-by-line 2024-09-30 09:27:15 +08:00
leo
e05264e35d fix: can not create branch when detached head has extra commits (#344) 2024-08-09 16:59:48 +08:00
leo
ed2d3279e1 enhance: create branch on detached HEAD (#344) 2024-08-09 16:06:28 +08:00
leo
888bf54303 code_style: remove unused code 2024-07-22 16:41:35 +08:00
leo
b972bfd5f1 fix: missing empty check for %(upstream:trackshort) (#273) 2024-07-22 16:01:26 +08:00
leo
f0649c95b5 feature: add an indicator that shows those commits the current branch ahead/behind its upstream 2024-07-19 09:29:16 +08:00
leo
4610f702b3 code_style: run dotnet format 2024-06-06 15:31:02 +08:00
leo
66f2aab6a7 code_review: review for PR (#147)
* code style
* localizations for zh_CN
2024-05-26 14:25:21 +08:00
Filipe Ramalho
b0c00340a8 Making local detached branch HEAD as the first item below folders 2024-05-25 15:09:40 -03:00
leo
96d4150d26 project: reorganize the structure of the project.
* remove dotnet-tool.json because the project does not rely on any dotnet tools.
* remove Directory.Build.props because the solution has only one project.
* move src/SourceGit to src. It's not needed to put all sources into a subfolder of src since there's only one project.
2024-04-02 20:00:33 +08:00
Enner Pérez
a1a14f8858 Project Location 2024-03-20 02:38:28 -05:00
leo
18aaa0a143 style: add .editorconfig for code formatting. see issu #25 2024-03-18 09:37:06 +08:00
Enner Pérez
c0a079de41 Source Generated Regex 2024-03-16 04:09:27 -05:00
leo
f6eb1281b5 enhance: force using StringComparison.Ordinal 2024-03-14 11:09:05 +08:00
leo
61e1491854 style: remove popup's border on non-linux platforms 2024-03-08 17:41:10 +08:00
leo
c14b7ebbe1 optimize: only parse track status for local branch 2024-03-08 17:16:54 +08:00
leo
f7e8cf1311 refactor: use rev-list --left-right --count to query track status with upstream (when using some linux with other locales instead of English, upstream:track will output status with localized word instead of 'ahead'/'behind') 2024-03-08 16:32:44 +08:00
leo
2a62596999 refactor<*>: rewrite all with AvaloniaUI 2024-02-06 15:08:37 +08:00