Commit Graph

4932 Commits

Author SHA1 Message Date
leo
c624fbf969 enhance: hash repo's setting in background because we do not need it immediately.
Signed-off-by: leo <longshuang@msn.cn>
2026-02-07 19:23:48 +08:00
leo
3b3fac6ef3 refactor: saving time about repo's shared settings (#2108)
- Save repo's settings only when user changed it from `Repository Configuration` dialog and is closing this dialog
- Never unload repo's settings (it is very small in memory)
2026-02-07 10:52:25 +08:00
github-actions[bot]
ef177437e4 doc: Update translation status and sort locale files 2026-02-06 11:20:04 +00:00
Iacopo Sbalchiero
43dac7c94c localization: added missing italian strings (#2106)
(cherry picked from commit c003ad0a8bffd2ca2a37ea89339815b2b0ac5db4)
2026-02-06 19:19:23 +08:00
leo
a7b39bfa4a enhance: always reset _lastFetchTime when auto-fetch should not run
Signed-off-by: leo <longshuang@msn.cn>

enhance: always reset `_lastFetchTime` when auto-fetch should not run

Signed-off-by: leo <longshuang@msn.cn>
2026-02-06 19:19:16 +08:00
leo
bfcc505f5a ux: use abbrev-hash of commit if the friendly name of it is longer than 32 chars
Signed-off-by: leo <longshuang@msn.cn>
2026-02-06 16:44:36 +08:00
leo
0e986b4238 ux: improve the visibility of column headers in dark theme
Signed-off-by: leo <longshuang@msn.cn>
2026-02-06 11:06:09 +08:00
leo
8d16897605 fix: always use lower-cased key to get git config (#2102)
Signed-off-by: leo <longshuang@msn.cn>
2026-02-06 10:51:45 +08:00
leo
f1af23cbb3 refactor: sub-window's startup location (#2100)
Child window will use current actived window (fall back to `MainWindow`) to calculate the startup location (likes `CenterScreen` mode). The benefits of doing this are:

- Solve the problem that newly opened windows always appear on the primary screen in multi-screen situations.
- Newly opened windows always display on the currently used screen. This reduces the need for users to move the mouse.

Signed-off-by: leo <longshuang@msn.cn>
2026-02-05 18:32:50 +08:00
leo
2cde92712a project: upgrade AvaloniaEdit to 11.4.1
Signed-off-by: leo <longshuang@msn.cn>
2026-02-05 17:27:40 +08:00
leo
3c6eae3708 ux: try to use Mica material for main window's titlebar on Windows 11
Signed-off-by: leo <longshuang@msn.cn>
2026-02-05 15:58:41 +08:00
leo
f446f5dfd1 ux: text diff view style
- Calculating hunk area should use `VisualYPosition.LineTop/LineBottom` instead of `VisualYPosition.TextTop/TextBottom`
- Improve the visibility of floating buttons for Light theme

Signed-off-by: leo <longshuang@msn.cn>
2026-02-05 12:11:25 +08:00
github-actions[bot]
499b4b451b doc: Update translation status and sort locale files 2026-02-05 02:42:45 +00:00
leo
a8da481f69 feature: supports to hide AUTHOR/COMMIT TIME column in HISTORY page
Signed-off-by: leo <longshuang@msn.cn>
2026-02-05 10:42:26 +08:00
Flipper
eac208ca0c feature: adds required metadata files for flatpak publishing (#2085)
* Adds required metadata files for flatpak publishing
* Add branding colors to sourcegit.metainfo.xml
* Update Exec command in sourcegit.desktop
* Delete release section from metainfo XML
* Removed release information for version 2026.02.
2026-02-04 15:23:46 +08:00
github-actions[bot]
a8ca89736a doc: Update translation status and sort locale files 2026-02-04 07:12:48 +00:00
leo
bf8e392bb2 feature: supports to hide AUTHOR and SHA columns in HISTORY (#2097)
Signed-off-by: leo <longshuang@msn.cn>
2026-02-04 15:12:22 +08:00
leo
6c2a89bd58 enhance: trim [bot] for email address which ends with @users.noreply.github.com (#2098) 2026-02-04 12:01:52 +08:00
leo
ceea4a18fc refactor: commit message editor (#2096)
- When using `SourceGit` as standalone commit message editor, always quits with code `0`.
- Use hotkey `ESC` and dialog titlebar button instead of a custom `OK` button to close this window.
2026-02-04 10:43:16 +08:00
leo
5f0bd16eac feature: add log for git cherry-pick/rebase/revert/merge --continue/--skip/--abort (#2096) 2026-02-04 10:22:02 +08:00
leo
52281a404f project: upgrade AvaloniaEdit to 11.4.0 2026-02-03 19:31:25 +08:00
leo
62d2908a79 refactor!: split repository settings into two parts - shared settings and ui states (#2071)
- All the attributes that can be changed from `Repository Configuration` window are `shared settings`, and will be shared (also synced) between worktrees
- The other UI states, such as current history filters, branch/tag sort methods, tree states etc., will be saved into each worktree's real git dir. And those states will not be synced between each others.

BREAKING CHANGE: Users will lost their old UI states. But the shared settings remains.
2026-02-03 18:59:29 +08:00
leo
3b576b02f5 fix: left LineNumberMargin in text editor did not update its width
Signed-off-by: leo <longshuang@msn.cn>
2026-02-03 12:47:55 +08:00
leo
1d80d001dd feature: show MINE and THEIRS revision in merge conflict editor
- Rename some resources about conflicts
- Rename `MergeConflictEditor.XXXDiffLines` to `MergeConflictEditor.XXXLines`
- It's not necessary to show commit info in tooltip for conflict revisions
- New UI/UX for merge conflict editor

Signed-off-by: leo <longshuang@msn.cn>
2026-02-03 12:45:39 +08:00
leo
1038855a8f enhance: auto-select the first conflict file when no files are selected (#2053)
Signed-off-by: leo <longshuang@msn.cn>
2026-02-03 11:36:46 +08:00
leo
65d122f9ce refactor: stores runtime data in ~/.sourcegit instead of ~/.local/share/SourceGit (#2088)
Signed-off-by: leo <longshuang@msn.cn>
2026-02-03 11:02:29 +08:00
leo
8a5b0245b6 fix: gets doubled EOLs while coping content with CRLF line-endings in diff view (#2091)
Signed-off-by: leo <longshuang@msn.cn>
2026-02-03 10:28:48 +08:00
leo
bf2078477d enhance: make sure the $XDG_DATA_HOME dir exists
Signed-off-by: leo <longshuang@msn.cn>
2026-02-02 17:41:45 +08:00
leo
47a7c90bb6 refactor: move data from $XDG_CONFIG_HOME/SourceGit to $XDG_DATA_HOME/SourceGit on Linux (#2088)
Old datas will be migrated automatically

Signed-off-by: leo <longshuang@msn.cn>
2026-02-02 17:03:47 +08:00
leo
98bee996d8 refactor: stores crash logs into crashes sub-folder and removes the User line in crash log
Signed-off-by: leo <longshuang@msn.cn>
2026-02-02 15:47:44 +08:00
github-actions[bot]
5b06432926 doc: Update translation status and sort locale files 2026-02-02 07:05:53 +00:00
AquariusStar
833faf5536 localization: update Russian translate (#2089) 2026-02-02 15:05:42 +08:00
leo
5eaa71fd65 code_style: simplify code about conflicts
Signed-off-by: leo <longshuang@msn.cn>
2026-02-02 14:23:35 +08:00
vitorpc4
1652b0500b feature: support visualstudio.com urls for Azure DevOps pull requests (#2087) 2026-02-02 10:29:33 +08:00
leo
4f11be1148 enhance: do nothing if current line is not in a conflict region
Signed-off-by: leo <longshuang@msn.cn>
2026-01-30 11:13:32 +08:00
leo
7f757e11d5 refactor: use a new class Models.ConflictLine for conflict editor instead of Models.TextDiffLine
Signed-off-by: leo <longshuang@msn.cn>
2026-01-30 11:05:58 +08:00
leo
2006fa8040 enhance: keep scroll after staging/unstaging/discarding hunks (#2072) (#2083)
Signed-off-by: leo <longshuang@msn.cn>
2026-01-29 19:42:44 +08:00
leo
25b56fb18a ux: color for ref name in comparision
Signed-off-by: leo <longshuang@msn.cn>
2026-01-29 15:17:50 +08:00
leo
f545eeacd8 feature: add Reset File(s) to <revision> context menu entry to selected change(s) in compare view (#2079)
Signed-off-by: leo <longshuang@msn.cn>
2026-01-29 14:53:26 +08:00
github-actions[bot]
741a732795 doc: Update translation status and sort locale files 2026-01-29 04:04:06 +00:00
leo
96a9e99621 feature: add Reset File(s) to <revision> context menu entry to selected change(s) in revision compare view (#2079)
Co-authored-by: ybeapps <ybeapps@gmail.com>
Signed-off-by: leo <longshuang@msn.cn>
2026-01-29 12:03:47 +08:00
leo
769c22083d refactor: rewrite Reset to This/Parent Revision feature in commit details panel (#2079)
Better handle for `added/deleted/renamed` file changes

Co-authored-by: ybeapps <ybeapps@gmail.com>
Signed-off-by: leo <longshuang@msn.cn>
2026-01-29 11:17:20 +08:00
leo
7585f0d8e3 ux: move Open as Folder to the bottom of context menu (#2080)
Signed-off-by: leo <longshuang@msn.cn>
2026-01-29 10:16:49 +08:00
github-actions[bot]
7cc4f9ba98 doc: Update translation status and sort locale files 2026-01-28 09:33:35 +00:00
leo
6c1ef2cc99 localization: remove unused translations
Signed-off-by: leo <longshuang@msn.cn>
2026-01-28 17:33:15 +08:00
leo
ca39f6185d fix: designer stops working
Signed-off-by: leo <longshuang@msn.cn>
2026-01-28 16:08:30 +08:00
leo
738357b13b fix: closing alert shows in wrong condition
Signed-off-by: leo <longshuang@msn.cn>
2026-01-28 15:53:07 +08:00
leo
bc2d13a3b8 feature: add a minimap to merge conflict editor
Signed-off-by: leo <longshuang@msn.cn>
2026-01-28 15:39:37 +08:00
leo
7c2053a81d code_review: PR #2070
- Use `HotKey` binding for buttons
- Better error handling

Signed-off-by: leo <longshuang@msn.cn>
2026-01-28 14:42:16 +08:00
leo
54c733bb85 ux: sometimes padding is not work
Signed-off-by: leo <longshuang@msn.cn>
2026-01-28 11:52:22 +08:00