Commit Graph

18 Commits

Author SHA1 Message Date
leo
bd81ccd94f fix: main thread deadlock cause by calling .Result directly (#1720)
Signed-off-by: leo <longshuang@msn.cn>
2025-08-12 16:03:58 +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
leo
61372e2ffd code_review: PR #1472
Move `Commands.IsCommitSHA` testing from `Commands.QuerySingleCommit` to `ViewModels.Repository.StartSearchCommits`,  because we only need test the SHA user typed in

Signed-off-by: leo <longshuang@msn.cn>
2025-06-30 10:06:13 +08:00
Sina Hinderks
8602ba2fc3 fix: searching for tree/blob hash never-ending (#1472)
Searching for a tree or blob hash instead of a commit hash created a
seemingly never-ending search (internally an exception was thrown).

Examples for non-ending searches in the SourceGit repository itself are
searching for 6b83a0a (that is the tree "src" of commit 190d2ee) or
e686a53 (that is the file ".gitignore" in the tree of commit 190d2ee).
2025-06-30 10:00:32 +08:00
leo
8d47bd5cd9 refactor: use --format=<format> instead of --pretty=format:<format>
Signed-off-by: leo <longshuang@msn.cn>
2025-03-17 20:46:01 +08:00
leo
83b802e357 refactor: collect the commits for the most recent year instead of just the current year (#414) 2024-08-28 18:16:57 +08:00
leo
40d5a7c7f3 code_style: run dotnet format to apply rules 2024-07-23 13:58:57 +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
f4eca45754 code_style: remove all IDE warnings 2024-07-15 00:30:31 +08:00
leo
7f2e22def6 feature: supports branch compare (#174) 2024-06-11 15:30:06 +08:00
leo
9e45a8a77d enhance: only store subject in commits.
It has several advantages:

* reduce the memory costed by histories
* higher performance while parsing commits
* no need to calculate subject every time, which is invoked most frequently to render histories
2024-06-08 12:19:48 +08:00
leo
78c7168a46 enhance: make commit's subject the same with pretty print parameter %s in git log command 2024-06-07 12:31:10 +08:00
leo
b4e01a8b93 refactor: commits only hold the end position of subject in body 2024-06-06 20:59:09 +08:00
leo
4610f702b3 code_style: run dotnet format 2024-06-06 15:31:02 +08:00
leo
ce9a3dad2f enhance: improve commit and stash parsing time 2024-06-05 11:46:31 +08:00
leo
5886997389 enhance: QuerySingleCommit supports X.509 and SSH gpg signing formats 2024-06-04 10:27:52 +08:00
leo
4249653ed6 feature: add context menu for both branch and commit to compare selected with current HEAD 2024-05-27 17:21:28 +08:00