leo
3b18ee0b37
code_style: remove unused code
...
Signed-off-by: leo <longshuang@msn.cn >
2025-04-08 20:20:20 +08:00
leo
7cda7211f1
refactor: statistics dialog
...
- use `%aN+%aE` instead of `%aN` to get commit author
- show user avatar in statistics dialog
Signed-off-by: leo <longshuang@msn.cn >
2025-04-07 21:20:59 +08:00
leo
8c9cf05c1d
fix: renamed files are missing in commit changes and stash changes ( #1151 )
...
Signed-off-by: leo <longshuang@msn.cn >
2025-04-07 10:14:02 +08:00
leo
56ebc182f2
enhance: try to reinstate not onl the working tree's change, but also the index's ones ( #1135 )
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-28 12:20:36 +08:00
leo
7cd5814410
enhance: better regex for output of Commands.CompareRevisions
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-20 21:18:51 +08:00
leo
38d87fa1a1
feature: use git stash show -u --name-status <stash_name> command to query changes in selected stash if git >= 2.32.0
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-20 21:12:08 +08:00
leo
760e44877b
fix: wrong split char
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-18 12:15:00 +08:00
leo
695db2a319
code_style: run dotnet format
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-17 20:57:18 +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
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
Gadfly
b930066b5a
fix: improve line splitting to handle both LF and CRLF line endings ( #1106 )
2025-03-17 19:59:28 +08:00
Gadfly
cea8a90680
refactor: use $GIT_COMMON_DIR instead of cut $GIT_DIR/worktrees ( #1103 )
2025-03-17 15:56:13 +08:00
leo
6273c01d71
fix: git rev-list raises errors after selected commit in Histories page ( #1101 )
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-17 10:55:54 +08:00
leo
c3e1fb93b6
refactor: fix maxOS PATH env
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-14 10:54:09 +08:00
leo
c8bee2f6ba
code_review: PR #1093
...
Merge deleting branch and tag on remote into `SourceGit.Commands.Push(repo, remote, refname, isDelete)`
Signed-off-by: leo <longshuang@msn.cn >
2025-03-14 09:36:34 +08:00
Michael Pakhantsov
9645b65db6
Explicitly provided fully qualified reference for the git branch, becase can be exists a tag and a branch with identical names ( #1093 )
...
Fix push command for branch deletion
Updated the `push` command to use `--delete refs/heads/{name}` instead of `--delete {name}` for clearer branch reference when deleting a remote branch.
Co-authored-by: Michael Pakhantsov <michae.pakhantsov@gmail.com >
2025-03-14 09:26:59 +08:00
leo
bb2284c4c9
refactor: re-write commit searching (part 3)
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-12 11:53:24 +08:00
leo
231f3bf668
enhance: use --ancestry-path=<commit_oid> to reduce unnecessary outpus while querying children commits
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-12 10:11:00 +08:00
leo
91c5c96afc
fix: accessing dummy in multi-threads throws exception
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-11 20:05:34 +08:00
leo
471452646b
refactor: use System.Threading.CancellationToken instead of SourceGit.Commands.Command.CancelToken to cancel fetching information of selected commit
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-11 16:53:51 +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
2b2f070c4a
enhance: use --no-optional-locks parameter for git status command
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-10 18:29:11 +08:00
leo
df6cbcaa28
fix: app crashed after enable Show children in the commit details ( #1072 )
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-10 11:33:38 +08:00
leo
ca6d41ee60
enhance: try to get stopped at revision info from .git/rebase-merge/head
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-07 11:39:15 +08:00
leo
78c0d8d334
fix: both --tags and --no-tags are used in git pull command
...
Signed-off-by: leo <longshuang@msn.cn >
2025-03-06 10:37:50 +08:00
leo
b75676a7f8
refactor: commit message
...
- move issue tracker and commit hash links parsing to view models
- parsing links async
- make sure matched hash is a valid commit oid
- disable `CHILDREN` row in submodule info panel
Signed-off-by: leo <longshuang@msn.cn >
2025-03-04 16:04:19 +08:00
GadflyFang
7f8372f6b5
enhance: Handle file mode changes for new/deleted file ( #1040 )
2025-03-03 10:38:58 +08:00
leo
bdf439a742
enhance: do not show error message if it is empty
...
Signed-off-by: leo <longshuang@msn.cn >
2025-02-26 16:33:11 +08:00
leo
1d037c7c57
feature: add context menu Save As Patch... for selected stash ( #1018 )
...
Signed-off-by: leo <longshuang@msn.cn >
2025-02-24 21:24:53 +08:00
leo
2b4fc64c73
fix: resolve conflict with deleted files does not work ( #1009 )
...
Signed-off-by: leo <longshuang@msn.cn >
2025-02-21 10:26:14 +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
c3eca0d7fd
refactor: OpenAI integration ( #996 )
...
- Add `OpenAIResponse` to trim the `<think>...</think>` block
- Add an `Enable Streaming` option to fix the issue that some services do not support streaming output
Signed-off-by: leo <longshuang@msn.cn >
2025-02-19 18:01:16 +08:00
Dmitrij D. Czarkoff
588879eb7f
feat: change worktree presentation ( #978 )
...
Present the worktree name first, then relative path to the main repo.
This is more aligned with Git's own UI, and works better with UI size constrains.
2025-02-13 10:41:08 +08:00
leo
af20ab2448
feature: add Wait for action done option to control whether or not to wait for the custom action execution to complete ( #951 )
...
Signed-off-by: leo <longshuang@msn.cn >
2025-02-11 14:34:14 +08:00
GadflyFang
ef2e0a8a56
fix: Ignore the Chain-of-Thought in AI response ( #952 )
...
- Improve chat response processing to handle thinking patterns using regular expressions.
- Migrate server value by removing trailing '/chat/completions' path.
2025-02-08 17:30:27 +08:00
leo
2495911bd8
code_style: run dotnet format
...
Signed-off-by: leo <longshuang@msn.cn >
2025-02-08 12:08:06 +08:00
leo
a915708db3
refactor: rewrite OpenAI integration
...
- use `OpenAI` and `Azure.AI.OpenAI`
- use `developer` role instead of `system` for OpenAI's `o1` series models
- use streaming response
- re-design `AIAssistant`
Signed-off-by: leo <longshuang@msn.cn >
2025-02-08 10:03:11 +08:00
leo
7089f29b85
refactor: re-implement git stash apply
...
* supports `--index` option
* add an option to drop selected stash after applying
* remove `Pop` context menu for stash
Signed-off-by: leo <longshuang@msn.cn >
2025-02-06 16:33:55 +08:00
leo
38a8490d16
code_review: PR #946
...
Signed-off-by: leo <longshuang@msn.cn >
2025-02-06 13:07:58 +08:00
GadflyFang
9aba737d9e
feat: support compare both revision in FileHistories ( #786 ) ( #946 )
2025-02-06 11:33:55 +08:00
GadflyFang
3ca4dc488c
feat: Add stash auto-restore functionality ( #947 ) ( #948 )
2025-02-06 10:31:46 +08:00
GadflyFang
3af6012561
refactor: Update submodules individually to avoid failures ( #925 ) ( #936 )
...
* refactor: Update submodules individually to avoid failures (#925 )
- Remove `--recurse-submodules` flag from the clone command to simplify the cloning process.
- Refactor submodule update logic to handle updating all submodules in a loop and improve progress description handling.
* fix: Parse submodule list even if submodule status fails (#935 )
2025-02-06 10:08:12 +08:00
GadflyFang
4f41f44a9f
fix: add --include-untracked to stash push for specific changes ( #931 )
2025-02-06 09:51:03 +08:00
leo
fa07bb5b5a
refactor: move per-repository config Enable --prune on fetch to global git config fetch.prune ( #908 )
...
Signed-off-by: leo <longshuang@msn.cn >
2025-01-25 12:06:48 +08:00
leo
e242119a03
fix: searching by Author & Committer does not work when the committer is different with author
2025-01-23 16:11:07 +08:00
GadflyFang
6482ef227a
fix: prevent target branch HEAD from being changed when adding worktree ( #919 )
...
* fix: prevent target branch HEAD from being changed when adding worktree
Signed-off-by: Gadfly <gadfly@gadfly.vip >
* fix: worktree path validator trigger error
Signed-off-by: Gadfly <gadfly@gadfly.vip >
---------
Signed-off-by: Gadfly <gadfly@gadfly.vip >
2025-01-21 13:58:07 +08:00
leo
6f407fb086
enhance: enable --index option in git stash pop command by default ( #903 )
2025-01-14 18:07:55 +08:00
leo
cc5f3ebfa5
refactor: do not run git add for untracked file while stashing local changes ( #903 )
2025-01-14 17:10:06 +08:00
Mat
011f5258ad
fix: LFS locks do not show if user name contains . character ( #902 )
2025-01-14 10:18:56 +08:00