attempted a recursive function going through parent commits, displayed all commits regardless of branch