Commit Graph

488 Commits

Author SHA1 Message Date
leo
0f56df35bc code_review: PR #1890
- Re-design LFS Locks window
- Unlocking multiple files is only used in `LFS Locks` window. Remove it from `ViewModels.Repository`
- Use `App.AskConfirmAsync` instead of show confirm window manually
- Add missing translation for Chinese

Signed-off-by: leo <longshuang@msn.cn>
2025-11-03 10:57:25 +08:00
Mat
691686cbd6 feature: unlock all locks (Git LFS) (#1890)
* Add "Unlock all my locks" functionality to LFS Locks

* Add confirmation dialog for "Unlock all my locks" in LFS Locks

* Remove trailing whitespaces across LFS-related files
2025-11-03 10:28:38 +08:00
leo
02ecd581c7 refactor: use new command QueryRepositoryStatus to update repository status in Welcome page
Signed-off-by: leo <longshuang@msn.cn>
2025-10-22 17:42:51 +08:00
leo
20ff55fc03 feature: show repo status in Welcome page (#1867)
Signed-off-by: leo <longshuang@msn.cn>
2025-10-22 15:47:53 +08:00
leo
fe471ac89d feature: enable multiple-selection for changes collection view in Changes Detail/Stash Changes/Branch Compare/Revision Compare (#1826)
Signed-off-by: leo <longshuang@msn.cn>
2025-10-21 16:05:11 +08:00
leo
e51824b387 refactor: use --json while querying LFS locks instead of parse line-by-line with regex (#1858)
Signed-off-by: leo <longshuang@msn.cn>
2025-10-17 11:55:14 +08:00
leo
0ab4926ffe enhance: omit commit that is already cherry-picked from the target branch while querying commits for interactive-rebase (#1811)
Signed-off-by: leo <longshuang@msn.cn>
2025-09-17 13:35:43 +08:00
leo
3056287cde feature: add a check icon for commits contained in current branch in search results (#1773)
Signed-off-by: leo <longshuang@msn.cn>
2025-09-01 21:15:50 +08:00
leo
9be50eb892 enhance: do not create temp string for large output of some git command
Signed-off-by: leo <longshuang@msn.cn>
2025-09-01 14:19:17 +08:00
leo
01ed9caea4 refactor: merge BranchTrackStatus to Branch
Signed-off-by: leo <longshuang@msn.cn>
2025-08-29 17:32:22 +08:00
leo
786ca316f5 fix: wrong flags to query commits for interactive-rebase (#1765)
Signed-off-by: leo <longshuang@msn.cn>
2025-08-27 20:58:27 +08:00
leo
ecfe9145a3 fix: modified/renamed issue tracker rule can not be saved (#1768)
This commit also change the way to save modified issue tracker - It will be saved when closing the `Repository Configuration` dialog.

Signed-off-by: leo <longshuang@msn.cn>
2025-08-27 15:33:03 +08:00
leo
2df1830ffc enhance: try load lfs image from local cache first before loading it by git lfs smudge command
Signed-off-by: leo <longshuang@msn.cn>
2025-08-27 11:40:25 +08:00
leo
50211312d5 feature: supports --no-verify option while committing (#1762)
Signed-off-by: leo <longshuang@msn.cn>
2025-08-26 16:36:52 +08:00
leo
ae737b675b enhance: better indication and context-commands for worktree-linked branch (#1761)
- For worktree-linked branch, `Checkout xyz` will be replaced with `Switch to xyz (worktree)`
- Show worktree path in tooltip of worktree-linked branch
- Add context menu entry `Open` for selected worktree

Signed-off-by: leo <longshuang@msn.cn>
2025-08-26 15:03:35 +08:00
leo
14adc2361a enhance: warn users if they are using vimdiff or nvimdiff as external merge/diff tool (#1742)
Signed-off-by: leo <longshuang@msn.cn>
2025-08-25 12:39:01 +08:00
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
6511d15c01 refactor: rewrite text diff view
- Move some data-only code from `Views` to `ViewModels`
- Remove unnecessary attributes
- This commit also contains a feature request #1722

Signed-off-by: leo <longshuang@msn.cn>
2025-08-19 15:53:03 +08:00
leo
3cce6c50a6 feature: share settings between worktrees (#1665)
NOTE: we can only share settings between worktrees for reading! It means that the repository settings only saved by the main repository not worktrees
Signed-off-by: leo <longshuang@msn.cn>
2025-08-14 12:16:49 +08:00
leo
04055f66c4 refactor!: move local issue tracker rule settings from $GIT_DIR/sourcegit.issuetracker to default repo's git config (#1725)
Signed-off-by: leo <longshuang@msn.cn>
2025-08-14 11:18:50 +08:00
leo
f206167f99 code_style: remove unnecessary empty line
Signed-off-by: leo <longshuang@msn.cn>
2025-08-14 10:48:40 +08:00
leo
e87eb8137b fix: try to avoid asking ssh passphrase every time while communicating with remote (#1577)
Signed-off-by: leo <longshuang@msn.cn>
2025-08-13 16:53:54 +08:00
leo
2919433a91 code_style: only Commands.DiffTool needs synchronous method Exec
Signed-off-by: leo <longshuang@msn.cn>
2025-08-13 16:13:37 +08:00
leo
5b6450d026 code_style: move protected methods together
Signed-off-by: leo <longshuang@msn.cn>
2025-08-13 11:14:41 +08:00
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
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
leo
ff15420ac4 fix: crash when tag's %(creatordata) returns empty string (#1705)
Signed-off-by: leo <longshuang@msn.cn>
2025-08-09 10:27:01 +08:00
leo
c208ef3647 revert: getting askpass for every action even when it's not necessary (#1577)
This reverts commit 6822ae3e2e.

Signed-off-by: leo <longshuang@msn.cn>
2025-08-06 12:01:37 +08:00
leo
c27c9f6b10 feature: show tagger in annotated tag's tooltip (#1664)
Signed-off-by: leo <longshuang@msn.cn>
2025-08-05 21:22:39 +08:00
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
leo
ab14e818be refactor: simplify the invocation of external merge/diff tool
Signed-off-by: leo <longshuang@msn.cn>
2025-07-28 14:18:34 +08:00
leo
619fc3c073 feature: auto-track remote branch when the remote branch is first time to checkout (#1616)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-24 18:23:52 +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
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
6822ae3e2e fix: getting askpass for every action even when it's not necessary (#1577)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-21 17:51:32 +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
eb04c872a9 fix: crash when stash message is null
Signed-off-by: leo <longshuang@msn.cn>
2025-07-16 18:24:25 +08:00
leo
dba6b7555e feature: supports to use git-credential-libsecret instead of git-credential-manager on Linux (#1560)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-16 16:26:28 +08:00
leo
4c4af6ef68 feature: supports to discard all local changes without untracked files (#1586)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-16 15:37:11 +08:00
leo
c20b469400 fix: can not unstage changes with amend (#1582)
`git update-index --index-info` requires paths are separted by LF (not CRLF)

Signed-off-by: leo <longshuang@msn.cn>
2025-07-15 14:38:00 +08:00
leo
46690f4afb refactor: use SSH_ASKPASS_REQUIRE=force instead of DISPLAY=required
Signed-off-by: leo <longshuang@msn.cn>
2025-07-15 11:51:24 +08:00
leo
d28bd92e4f fix: missing .Quoted() for stash message
Signed-off-by: leo <longshuang@msn.cn>
2025-07-15 11:36:10 +08:00
leo
7627600939 fix: wrong editor configuration commandline passing to git (#1576)
Signed-off-by: leo <longshuang@msn.cn>
2025-07-14 17:22:58 +08:00
Nathan Baulch
a229a19b2e fix: discard null process output data (#1571) 2025-07-14 10:03:43 +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
Nathan Baulch
9c039215cf fix: escape double quotes in quoted git command strings (#1559) 2025-07-11 15:53:42 +08:00
leo
b1efd6527c feature: allows to reword HEAD commit while keeping local changes
Signed-off-by: leo <longshuang@msn.cn>
2025-07-11 14:09:41 +08:00
Nathan Baulch
3f5f74d7ae enhance: support --autostash on interactive rebase (#1556) 2025-07-11 13:27:07 +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
leo
8bdc1c5976 code_style: a few more to PR #1543
Signed-off-by: leo <longshuang@msn.cn>
2025-07-09 16:37:12 +08:00