-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove last usage of vbranches.commits
#5704
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
b922666
to
b4bcf22
Compare
eabf796
to
3bd8c47
Compare
e757819
to
9911832
Compare
9911832
to
c97c197
Compare
c97c197
to
edd000f
Compare
ac2b644
to
5f9b10f
Compare
5f9b10f
to
5782cc8
Compare
5782cc8
to
4fef90d
Compare
|
||
get ancestorMostConflictedCommit(): DetailedCommit | undefined { | ||
const commits = [...this.upstreamPatches, ...this.patches].sort((a, b) => { | ||
if (a.createdAt > b.createdAt) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder how this works with commits that were created in the middle of the series.
I believe this is only used to check if this is the 'first' conflicted from the bottom, so in order to avoid having to sort them, I think we can assume that there are no upstreamPatches
that are also conflicted.
Maybe we can update that horrible name I gave this getter and make it even worse: ancestorMostConflictedLocalCommit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha okay yeah I cleaned this up a bit. In terms of naming, I thought about it for a minute, but seeing as we want to avoid "top"/"bottom" I coudln't think of anything better 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha fair enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just that comment about the sorting of commits
☕️ Reasoning
vbranches.commits
🧢 Changes
localCommits
/localAndRemoteCommits
, etc. contexts -BranchLane
used to setcommitStore
/localCommits
/localAndRemoteCommits
contexts for the entire lane and all its childrenCurrentSeries
BranchFiles
list. This one needs a list of all patches / upstreamPatches in the lane in order to build the "I'm locked to ..." tooltip on uncommited files potentially.