Commit Graph

292 Commits

Author SHA1 Message Date
leo
6ddbc6f92a code_review: PR #1660
Since `$GIT_DIR` is the same with `$GIT_COMMON_DIR` for submodules, use `$GIT_DIR` directly to ignore submodule's main worktree  while querying worktrees

Signed-off-by: leo <longshuang@msn.cn>
2025-08-04 20:35:24 +08:00
Gadfly
6cad70db24 fix: exclude main worktree by comparing with commonDir in submodules (#1660)
Fixes worktree detection in submodules where worktree.FullPath differs from commonDir path.
2025-08-04 20:10:07 +08:00
leo
a4306fe6e3 feature: double-clicking tag will try to checkout (detached mode) the revision refered by selected tag (#1661)
Signed-off-by: leo <longshuang@msn.cn>
2025-08-04 17:53:42 +08:00
leo
e2bf9ccc98 code_style: move some code from Views.Histories to ViewModels.Histories
Signed-off-by: leo <longshuang@msn.cn>
2025-07-24 12:51:22 +08:00
leo
5339adec65 refactor: use async instead of Task.Run
Signed-off-by: leo <longshuang@msn.cn>
2025-07-23 17:15:16 +08:00
leo
2a2f01c34b refactor: move context menu creation from ViewModels to Views (PART 7)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-23 14:59:11 +08:00
leo
03160d339e refactor: move context menu creation from ViewModels to Views (PART 6)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-23 14:00:20 +08:00
leo
b3087c3076 refactor: move context menu creation from ViewModels to Views (PART 1)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-23 12:22:21 +08:00
leo
d8c8765aa3 code_style: add CreateIssueTrackerCommand to generate Commands.IssueTracker
Signed-off-by: leo <longshuang@msn.cn>
2025-07-22 21:42:00 +08:00
leo
9802ac963c fix: should clear old issuetrackers when pressing F5 to reload whole repository (#1599)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-22 21:16:53 +08:00
leo
b345bb4668 refactor: use the same method to save both local and shared issuetracker (#1599)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-22 21:03:50 +08:00
leo
c977757a74 code_review: commit 9f155d7b32 from heartacker:heartacker/issue1595
- Combine `EnableReflog`, `EnableFirstParentInHistories`, `SimplifyByDecoration` attribute into one `HistoryShowFlags`
- Re-design toolbar buttons in `HISTORY` page switcher because there're too many buttons.

Signed-off-by: leo <longshuang@msn.cn>
2025-07-18 17:19:11 +08:00
heartacker
9f155d7b32 feature: add --simplify-by-decoration mode support (#1595) 2025-07-18 16:17:14 +08:00
leo
b467eddead feature: supports to share issuetracker rules in .issuetracker file (#1567)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-18 13:09:34 +08:00
leo
c6c1fb23ec refactor: use Tapped event instead of Click to access KeyModifers
Signed-off-by: leo <longshuang@msn.cn>
2025-07-16 18:52:42 +08:00
leo
6ae8c7c759 code_style: move class extensions to App.Extensions.cs to use these extensions anywhere
Signed-off-by: leo <longshuang@msn.cn>
2025-07-11 18:00:21 +08:00
leo
8f9094fc77 fix: should use File.Create instead of File.OpenWrite
Signed-off-by: leo <longshuang@msn.cn>
2025-07-11 10:39:33 +08:00
Nathan Baulch
796f8898c9 code_style: general cleanup (#1543)
* code_style: general cleanup

* feedback fixes
2025-07-09 16:12:03 +08:00
leo
b85f100d84 code_review: PR #1532
- remove `MenuItemExtension`
- display `Tag` as hotkey tips when `InputGesture` is null
- remove `Avalonia.Input` reference in `ViewModels`
- rewrite `InteractiveRebase` view to avoid using `Tag` in menu item

Signed-off-by: leo <longshuang@msn.cn>
2025-07-07 12:44:31 +08:00
leo
fba1b63af8 feature: supports to change submodule's branch (#1513)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-05 19:16:07 +08:00
leo
62a546a33a feature: supports to copy sha and remote url of selected submodule (#1518) (#1522)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-05 17:05:20 +08:00
Nathan Baulch
3583527026 code_style: general cleanup (#1525) 2025-07-05 15:58:16 +08:00
leo
ffc06f7574 feature: support to open submodule change histories from context menu
Signed-off-by: leo <longshuang@msn.cn>
2025-07-04 17:12:40 +08:00
leo
5687265582 feature: supports git submodule set-url -- <path> <new_url> (#1506)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-04 16:53:27 +08:00
leo
cdb84c7c43 typo: ShowDailog -> ShowDialog
Signed-off-by: leo <longshuang@msn.cn>
2025-07-04 15:36:45 +08:00
leo
a6ebc1502c refactor: show child-window and modal dialog
Signed-off-by: leo <longshuang@msn.cn>
2025-07-04 14:49:04 +08:00
leo
937ad0c708 feature: add Update Submodule context menu entry for selected submodule
Signed-off-by: leo <longshuang@msn.cn>
2025-07-04 11:38:34 +08:00
leo
56a9447e19 feature: supports to move selected submodule (#1507)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-04 11:00:24 +08:00
leo
92ab85bb3f enhance: do not warn when creating branch with current detached HEAD
Signed-off-by: leo <longshuang@msn.cn>
2025-07-03 20:11:21 +08:00
leo
18b9d982ce refactor: remove ConfigureAwait when we need to go back to UIThread after it
Signed-off-by: leo <longshuang@msn.cn>
2025-07-03 18:42:56 +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
945c63c78a ux: add badge for global custom actions (#1490)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-02 16:24:48 +08:00
leo
3a1827eb3d code_review: PR #1489
- Remove unnecessary `CallUIThread` in `ViewModels.Clone`
- Code style

Signed-off-by: leo <longshuang@msn.cn>
2025-07-02 13:16:49 +08:00
leo
93ffbdd21d refactor: use DataGrid instead of ListBox displaying history commits
Sometimes, `Grid.IsSharedSizeScope` does not work when navigating to the first commit

Signed-off-by: leo <longshuang@msn.cn>
2025-06-30 15:01:18 +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
leo
133b69de4a feature: supports to copy selected folder path in changes and rename searching by file to searching by path (#1470)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-28 12:38:03 +08:00
Nathan Baulch
1acf2a14df code_style: general cleanup (#1469) 2025-06-28 10:25:56 +08:00
leo
0e22503b22 feature: warn users when checking out new branch with commits not connected to any branches (#1463)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-26 12:58:31 +08:00
leo
ad7aaa34f0 feature: add Tag scope for custom actions (#1457)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-25 17:46:26 +08:00
leo
676785f8b1 feature: support to use input control in custom action
Signed-off-by: leo <longshuang@msn.cn>
2025-06-25 16:28:54 +08:00
leo
64ffbb113f fix: wrong localization key to compare remote branch with current
Signed-off-by: leo <longshuang@msn.cn>
2025-06-21 10:45:40 +08:00
leo
c5ad4b837d feature: auto-follow HEAD when bisecting (#1438)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-20 09:19:21 +08:00
leo
957c52aac4 fix: crash after remove worktree while it is opened in sourcegit (#1436)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-19 17:58:02 +08:00
Nathan Baulch
d404f6dbe2 code_style: general cleanup (#1428) 2025-06-18 09:29:18 +08:00
leo
7e2f3bec8c enhance: clear commit message before merging/cherry-picking/rebasing/reverting to allow SourceGit read it from git (#1414)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-12 10:39:52 +08:00
Nathan Baulch
ffac71b15f code_style: general cleanup (#1415)
* code_style:  general cleanup

* code_style: whitespace cleanup
2025-06-12 09:35:37 +08:00
leo
a128b67bd4 code_review: PR #1412
- Use `ViewModels.StashesPage.SelectedStash` instead of `sender is not ListBox { SelectedValue: Models.Stash stash }`
- In tags view, `SelectedItem` can be `Models.Tag` or `ViewModels.TagTreeNode`
- In logs window, `vm.SelectedLog` may be null

Signed-off-by: leo <longshuang@msn.cn>
2025-06-11 16:13:47 +08:00
Nathan Baulch
196b454ae8 feature: support delete key everywhere (#1412) 2025-06-11 15:35:43 +08:00
leo
5494093261 refactor: now all filesystem related trees/lists are sorted in case-insensitive mode
Signed-off-by: leo <longshuang@msn.cn>
2025-06-11 15:20:50 +08:00