title: How to get git -log of all branches in Java?
body: <p>I have a task to implement a program in Java (pure Java without 3rd party libraries) that reads a history of any git repository and puts the commits into tree data structure.
  <a href="https://i.stack.imgur.com/HZIJB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HZIJB.png" alt="enter image description here"></a></p>
  
  <p>Could you give me any hints? How to read git log in Java without 3rd party libraries?</p>