Skip to content

feat: add fixed point comparison for history#231

Open
cenk1cenk2 wants to merge 1 commit intoesmuellert:mainfrom
cenk1cenk2:patch-1
Open

feat: add fixed point comparison for history#231
cenk1cenk2 wants to merge 1 commit intoesmuellert:mainfrom
cenk1cenk2:patch-1

Conversation

@cenk1cenk2
Copy link

@cenk1cenk2 cenk1cenk2 commented Feb 7, 2026

This pull request adds a fixed point comparison for history mode.

By passing another flag with the existing flag parsing mechanism, you can designate a fixed point to compare a given commit with --base WORKING or --base HEAD.

This adds a different behavior where every commit you go back in history will only compare it against it to the designated state.

An example is as in the following case.

The current form without is as follows.

commit 5
commit 4 (commit 4 vs commit 5)
commit 3 (commit 3 vs commit 4)

with --base HEAD which we can imagine as commit 5;

commit 5 
commit 4 (commit 4 vs commit 5)
commit 3 (commit 3 vs commit 5)

This is comparable to the same-named diffview.nvim flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant