Commit Graph

890 Commits

Author SHA1 Message Date
leo
042ae5cc29 code_style: run dotnet format
Signed-off-by: leo <longshuang@msn.cn>
2025-06-27 16:12:57 +08:00
leo
0a8323bc1b enhance: supports to use $REPO in Default field of TextBox/PathSelector in custom actions (#1466)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-27 16:05:50 +08:00
leo
b31495b89b fix: wrong pattern to fill input control's value to custom action commandline arguments (#1467)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-27 16:02:56 +08:00
leo
0729c3044a enhance: supports to use ${BRANCH}/${COMMIT}/${TAG} in Default field of TextBox/PathSelector in custom actions (#1466)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-27 15:58:00 +08:00
leo
b0a80e41ee ux: always show the scope target of custom action (#1466)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-27 15:37:20 +08:00
leo
f36ab4a189 feature: remember main window position (#1315)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-26 17:42:02 +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
67efe76b97 fix: mismatch of local repo name after cloning git-bundle without specifying Local Name (#1460)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-26 10:21:57 +08:00
leo
054d5e41f3 feature: warn when creating commit on a detached HEAD (#1462)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-26 10:13:12 +08:00
leo
271f02b694 refactor: apply input control value from end to start
For example, this will avoid applying the first parameter to $10 - $19

Signed-off-by: leo <longshuang@msn.cn>
2025-06-26 09:28:39 +08:00
leo
295718effe code_style: execute custom action has nothing to do with git command
Signed-off-by: leo <longshuang@msn.cn>
2025-06-25 19:22:57 +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
Göran W
743be5491a enhance: allow drag-drop of item (or folder) anywhere in repo-list (#1459)
Dropping on a non-Group item was not allowed earlier, but now it adds/moves the dragged item into the parent Group (possibly Root) of the drop-target item.
2025-06-25 16:37:18 +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
71dd58a5d6 enhance: prefer to use workspace's default clone dir if it is set (#1454)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-24 21:27:32 +08:00
leo
dd01c74d11 feature: supports to scan workspace's default clone dir (#1454)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-24 21:19:52 +08:00
leo
d4edb41e9f ux: use CommitSubjectPresenter instead of simple TextBlock to display commit's subject in interactive rebase window
Signed-off-by: leo <longshuang@msn.cn>
2025-06-24 15:27:45 +08:00
leo
b519ead5a1 feature: supports to add ignored file(s) locally (saved in $GIT_DIR/info/exclude) (#1447)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-23 17:22:57 +08:00
leo
9bfc315ace feature: allow to push revision where local branch is ahead of its upstream (#1394) (#1441)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-21 11:58:56 +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
leo
af2b644792 code_review: PR #1416
- Split `DoubleTapped` into two methods: `CheckoutBranchByDecorator` and `CheckoutBranchByCommit`
- Move `DoubleTappedEvent` from whole ListBox to the row tapped actually
- Do nothing if the decorator double-clicked is HEAD
- Code-style

Signed-off-by: leo <longshuang@msn.cn>
2025-06-19 11:31:04 +08:00
Nathan Baulch
88fd8f32f1 feature: double tap specific branch (#1416)
* feature: double tap specific branch
* exactly match behavior of left sidebar
2025-06-19 10:27:31 +08:00
leo
cadcf40d74 feature: support to open selected folder in file manager
Signed-off-by: leo <longshuang@msn.cn>
2025-06-19 09:32:27 +08:00
leo
e81674912c refactor: remove duplicated context menu to ignore untracked files under folder
Signed-off-by: leo <longshuang@msn.cn>
2025-06-19 09:12:27 +08:00
leo
6729d4e896 feature: supports to ignore new files in folder from context menu of selected folder node in change tree (#1432)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-18 22:10:23 +08:00
leo
5ec8ae1296 ux: use CheckCircled instead of Check icon for stash apply context menu
Signed-off-by: leo <longshuang@msn.cn>
2025-06-18 14:37:14 +08:00
leo
94d25ee6c9 code_review: PR #1430
- add missing Chinese translations
- add missing icons for stash context menu

Signed-off-by: leo <longshuang@msn.cn>
2025-06-18 13:55:03 +08:00
Göran W
004022648c Add "Copy Message" to context-menu for Stash item (#1430)
* Refactor: Simplify parsing in QueryStashes, by passing the `-z` argument to `git stash list` for item separation.
* Add "Copy Message" command in stash-item context-menu.
2025-06-18 13:48:39 +08:00
leo
b06a4cbb8a code_style: remove whitespaces
Signed-off-by: leo <longshuang@msn.cn>
2025-06-18 09:32:39 +08:00
Nathan Baulch
d404f6dbe2 code_style: general cleanup (#1428) 2025-06-18 09:29:18 +08:00
leo
957fbbf54f refactor: rewrite stash local changes
Signed-off-by: leo <longshuang@msn.cn>
2025-06-17 20:56:02 +08:00
leo
90310a704d feature: supports to customize merge message (--edit) (#1421)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-17 15:07:55 +08:00
leo
a8da8c09ac feature: add a button to open current revision file with default editor in FileHistories
Signed-off-by: leo <longshuang@msn.cn>
2025-06-17 14:44:12 +08:00
leo
df7375313e enhance: clear last view revision file info after commit changed
Signed-off-by: leo <longshuang@msn.cn>
2025-06-17 14:12:00 +08:00
leo
efa6e46471 feature: add a button to open current revision file with default editor
Signed-off-by: leo <longshuang@msn.cn>
2025-06-17 12:20:02 +08:00
leo
e102e49f45 code_style: remove unnecessary properties
Signed-off-by: leo <longshuang@msn.cn>
2025-06-17 11:29:24 +08:00
Göran W
28844c59cf perf: optimize the WorkingCopy.IsChanged() method (#1418)
* There's no need to populate a Dictionary just to diff the the "old" and "cur" Lists of Changes.
* If the two lists are of equal length and no change has occurred, we can assume that they are also reported in equal sort-order (by git-status).
* Thus, we only need to compare the two items at each successive index.
2025-06-13 19:23:20 +08:00
leo
05757ebf40 feature: supports to view .tiff images
Signed-off-by: leo <longshuang@msn.cn>
2025-06-12 18:15:25 +08:00
leo
79650d1851 feature: supports to view .gif file as static image (not animated)
Signed-off-by: leo <longshuang@msn.cn>
2025-06-12 11:32:24 +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
leo
7de5991ecb code_review: PR #1415
- Column for hotkey in `Reset` popup should use `Auto` for width
- Add `SelectionBoxItemTemplate` for current selected mode in `Reset` popup

Signed-off-by: leo <longshuang@msn.cn>
2025-06-12 09:54:53 +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
leo
bcefb773c1 code_style: remove comment
Signed-off-by: leo <longshuang@msn.cn>
2025-06-10 17:19:37 +08:00
leo
aa1c8b1cc1 code_style: use combined expr
Signed-off-by: leo <longshuang@msn.cn>
2025-06-10 17:09:57 +08:00
leo
7d0536d94b feature: when trying to checkout a local branch from its tracking upstream and it is behind the upstream, show Checkout & Fast-Forward popup
Signed-off-by: leo <longshuang@msn.cn>
2025-06-10 17:04:06 +08:00