Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8777775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:21:32+00:00 2026-06-13T19:21:32+00:00

I am new to git and would like to know more about git lanes

  • 0

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

  1. the master lane is always set as 1 on git.
  2. 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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:21:33+00:00Added an answer on June 13, 2026 at 7:21 pm

    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

     package org.eclipse.jgit.revplot;
    
     public class PlotCommitList<L extends PlotLane> extends
        RevCommitList<PlotCommit<L>>{
    ....
    protected void enter(final int index, final PlotCommit<L> currCommit){
    //This method contains the logic
    }
    
    ....
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to git and I would like to know how to tackle
I'm new to Git and I would like to know how to move a
I would like to know if the following is possible in git: Suppose I
I would like to know the preferable way to move all my git repositories
I am a new user in Git world. I used to use Subversion (using
I'm very new to git. I wanted to create a repository named Common-Lib, below
I would like to know how you normally deal with this situation: I have
Im new to GIT and dont know yet how much it will fit my
I recently screwed up my git repo and would like to find out if
We have a non-standard subversion respository that we would like to convert to Git.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.