Improve graph readability and add a staged changes view for filtered branches - #1
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
This PR improves the readability of the git graph and adds a dedicated
staged changes view when a specific branch filter is active.
此 PR 改善了 git graph 的可讀性,並在選擇特定 branch 篩選時,新增專用的
staged changes 檢視畫面。
Changes / 變更內容
keep vertical graph lines at branch crossings instead of rendering a
cross glyph
add the short commit hash column to the main graph list
add a
cchanges view when a specific branch filter is activesplit the changes view into
AddedandNot addedsectionsshow a file list on the left and the selected diff on the right in a
40/60 layout
support
Tabfocus switching and diff scrolling in the changes viewcolorize change types and line counts in the changes panel
多分支交會時保留垂直線,不再使用交叉 glyph
在主畫面 commit 清單新增短版 commit hash 欄位
當選擇特定 branch 篩選時,可按
c開啟 changes 檢視將 changes 檢視分為
Added與Not added兩個區塊左側顯示檔案清單、右側顯示所選檔案 diff,版面比例為 40/60
在 changes 檢視中支援
Tab切換焦點,以及 diff 捲動在 changes 面板中加入變更類型與增減行數的顏色標示
Behavior / 行為說明
pressing
conly works when a specific branch filter is selectedAddedshows staged changesNot addedshows unstaged and untracked changesthe right pane shows the diff for the selected file from the correct
staged or unstaged source
只有在選擇特定 branch 篩選時,按
c才會開啟 changes 檢視Added顯示已git add的 staged changesNot added顯示尚未 add 的 unstaged 與 untracked changes右側面板會依照所選檔案,顯示對應的 staged 或 unstaged diff