I am new to git and would like to know more about git lanes used for finding branches.
Git repository has a lane concept for identifying if we are in same branch or in main branch etc.
But when i checked the lane that is initialized for the 1st branch, it is set as “1” – main branch, the very next branch created is marked as “0” – 1st branch and next branch as lane “2” and then lane 3 and so on…
i am using egit2.1 in eclispe
so i have doubt if
- the master lane is always set as 1 on git.
- where is the lane value set for master? is it part of egit or jgit
and do any of you have any documentation for egit development 🙂
Edit:
Sorry if I didnt use exact name, i was unaware of the Class used for lane until i checked into the code for eGit
the code was found in org.eclipse.egit.ui.internal.history.CommitGraphTable
some code that i found related to lane defect for a google search of git CommitGraphTable lane
These are the classes where I found the Lane object and lane definition
eGit
org.eclipse.egit.ui.internal.history.SWTCommit
org.eclipse.egit.ui.internal.history.SWTCommitList.SWTLane
jGit
org.eclipse.jgit.revplot.PlotCommitList
So please tell me where the lane is being set for the master lane?
I did some further digging in to the code and the Class PlotCommitList was setting the Lane for each commit object in the commit tree.
This logic was part of Jgit logic
ya @VonC was right to on extent about SWTCommitList