Commit Graph

4623 Commits

Author SHA1 Message Date
leo
562f21df6f enhance: always try to load commit message from $GIT_DIR/MERGE_MSG (#1915)
Signed-off-by: leo <longshuang@msn.cn>
2025-11-13 18:12:59 +08:00
leo
c4bcc5e174 code_style: more readable code
Signed-off-by: leo <longshuang@msn.cn>
2025-11-11 17:25:05 +08:00
leo
f572366c1d enhance: delete remote branch filter after the related branch has been deleted
Signed-off-by: leo <longshuang@msn.cn>
2025-11-10 15:50:03 +08:00
leo
2a99ee670b code_review: PR #1907
For untracked/added file, `\\ No newline at end of file` will always be added to the end of patch.

Signed-off-by: leo <longshuang@msn.cn>
2025-11-10 11:43:28 +08:00
Sina Hinderks
f88c424c10 fix: handling of last line without newline in hunks (#1907)
Motivation: Some editors (depending on editor configuration) change the
last line of a file by adding a missing newline.  But in order to keep
diffs at a minimum, it's sometimes advisable to not include this change
into the commit.  This should be possible by discarding the hunk with
this change.

Now it is possible to discard (or stage/unstage) such a change.
Previously discarding such a change was ignored, when there were other
changes in the same file.
2025-11-10 11:36:41 +08:00
github-actions[bot]
1e0dbcd24f doc: Update translation status and sort locale files 2025-11-10 03:31:57 +00:00
Sina Hinderks
d6bff4f867 localization: update German translations (#1906) 2025-11-10 11:31:46 +08:00
leo
4f11d8a077 feature: auto-remove history filter after deleting branch or tag (#1904)
Signed-off-by: leo <longshuang@msn.cn>
2025-11-10 11:31:03 +08:00
leo
2fdff53b2f feature: add on-behalf-of: keyword auto-completion
Signed-off-by: leo <longshuang@msn.cn>
2025-11-07 16:30:28 +08:00
leo
311244b9ad fix: avoid crashing when try to close a repository that has been deleted on disk
Signed-off-by: leo <longshuang@msn.cn>
2025-11-07 10:30:06 +08:00
leo
2ed83c5e2c fix: pre-filled action does not update some attributes of InteractiveRebaseItem
Signed-off-by: leo <longshuang@msn.cn>
2025-11-07 10:06:43 +08:00
leo
c6b521d680 ux: Conventional Commit Helper window is none-modal dialog now (#1901)
Signed-off-by: leo <longshuang@msn.cn>
2025-11-07 10:02:12 +08:00
leo
4d456f8558 enhance: clear updating workingcopy timer while calling MarkBranchesDirtyManually
Signed-off-by: leo <longshuang@msn.cn>
2025-11-06 19:29:00 +08:00
leo
9445faa238 ux: completion window border
Signed-off-by: leo <longshuang@msn.cn>
2025-11-06 19:13:56 +08:00
leo
dab051951e refactor: use dynamic resource binding property rather than hard code for commit message toolbox placeholder
Signed-off-by: leo <longshuang@msn.cn>
2025-11-06 10:45:12 +08:00
leo
bc4f06eda9 feature: add Refs: keyword
Signed-off-by: leo <longshuang@msn.cn>
2025-11-06 10:34:02 +08:00
leo
7a207a3589 enhance: completion window display limitation
Signed-off-by: leo <longshuang@msn.cn>
2025-11-06 10:30:48 +08:00
leo
1dd2d1a6c8 refactor: better way to calculate length of commit subject
- All empty line before valid commit message content will be ignored by git
- Whitespace at end-of-line will be ignored by git
- Whitespace at begining-of-line will be used by git
- For multiple-lines in subject, it will be replaced by single space by git when querying commit's subject

Signed-off-by: leo <longshuang@msn.cn>
2025-11-05 18:11:21 +08:00
leo
52ade74d67 enhance: git commit message keyword must starts from begining of a line
Signed-off-by: leo <longshuang@msn.cn>
2025-11-05 16:52:58 +08:00
leo
a744a93560 feature: auto-complete git commit message keywords, such as Co-authored-by:
Signed-off-by: leo <longshuang@msn.cn>
2025-11-05 16:39:31 +08:00
leo
54fedef50c code_style: remove unused code
Signed-off-by: leo <longshuang@msn.cn>
2025-11-05 15:03:16 +08:00
leo
1ea69d978d enhance: clear search results and suggestions after filter was cleared
Signed-off-by: leo <longshuang@msn.cn>
2025-11-05 14:51:41 +08:00
leo
31673a061f ux: layout for CreateBranch popup (#1896)
Signed-off-by: leo <longshuang@msn.cn>
2025-11-05 11:50:03 +08:00
leo
75c667f7b2 refactor: move searching commit code from Repository to SearchCommitContext and keep inputs remained while repo is opened (#1884)
Signed-off-by: leo <longshuang@msn.cn>
2025-11-05 11:38:03 +08:00
leo
642f576c14 ux: layout for CreateBranch popup (#1896)
Signed-off-by: leo <longshuang@msn.cn>
2025-11-05 10:24:19 +08:00
github-actions[bot]
d26eddec64 doc: Update translation status and sort locale files 2025-11-05 02:20:09 +00:00
Javier J. Martínez M.
3bafc7474b localization: update Spanish translation (#1895)
Add missing strings.
2025-11-05 10:19:53 +08:00
leo
95ddedd7b6 refactor: save history filters into $GIT_DIR/sourcegit.filters to support different filters between worktrees (#1893)
Signed-off-by: leo <longshuang@msn.cn>
2025-11-04 20:54:49 +08:00
leo
36aeb3f932 feature: supports CLI command --file-history <file_path> to view given file history (#1892)
Signed-off-by: leo <longshuang@msn.cn>
2025-11-04 16:54:47 +08:00
leo
4c38170584 enhance: use VisualLinesChanged instead of LayoutUpdated to reduce the times to call InvalidateVisual
Signed-off-by: leo <longshuang@msn.cn>
2025-11-04 16:33:21 +08:00
leo
64d44efaf9 fix: do not draw separator line if all subject has been scrolled out of display viewbox
Signed-off-by: leo <longshuang@msn.cn>
2025-11-04 16:19:01 +08:00
leo
1fd8587667 localization: typo in Text.CommitMessageTextBox.Placeholder
Signed-off-by: leo <longshuang@msn.cn>
2025-11-04 15:55:19 +08:00
leo
b26a186f08 code_style: remove unnecessary InvalidateVisual calls
Signed-off-by: leo <longshuang@msn.cn>
2025-11-04 15:53:45 +08:00
github-actions[bot]
b49bae6a21 doc: Update translation status and sort locale files 2025-11-04 07:48:37 +00:00
leo
785927da19 refactor: rewrite the commit message editor
Signed-off-by: leo <longshuang@msn.cn>
2025-11-04 15:48:22 +08:00
leo
9f541bdc1a enhance: auto-select the latest running git command log and auto-scroll to the end when new content is append to current viewing log (#1842)
Signed-off-by: leo <longshuang@msn.cn>
2025-11-04 10:42:23 +08:00
github-actions[bot]
39d1c011e2 doc: Update translation status and sort locale files 2025-11-04 02:20:51 +00:00
Mat
a534700974 localization: updated French translations (#1891) 2025-11-04 10:20:36 +08:00
leo
39b1617059 ux: commit message textbox should not have borders
Signed-off-by: leo <longshuang@msn.cn>
2025-11-03 20:48:36 +08:00
leo
0c503d3dee enhance: do not run git command if there's not a file locked by current user
Signed-off-by: leo <longshuang@msn.cn>
2025-11-03 11:50:53 +08:00
github-actions[bot]
8d883607c8 doc: Update translation status and sort locale files 2025-11-03 02:57:42 +00:00
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
github-actions[bot]
bdeac3e530 doc: Update translation status and sort locale files 2025-11-03 02:28:52 +00: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
github-actions[bot]
8aafc47811 doc: Update translation status and sort locale files 2025-11-03 02:24:36 +00:00
AquariusStar
7e59503165 localization: update Russian translate (#1888) 2025-11-03 10:24:20 +08:00
leo
cc5a14674b enhance: squashing head will generate default new commit message automatically
Signed-off-by: leo <longshuang@msn.cn>
2025-10-31 11:19:25 +08:00
github-actions[bot]
44286e8373 doc: Update translation status and sort locale files 2025-10-30 10:20:56 +00:00
leo
fa97d44e60 feature: supports to open file with detected external tools (#1882)
Signed-off-by: leo <longshuang@msn.cn>
2025-10-30 18:19:08 +08:00
leo
5b818b6e8c refactor: use a single property to indicate drop direction
Signed-off-by: leo <longshuang@msn.cn>
2025-10-30 14:07:12 +08:00