func PrintLog(commit *CommitNode) {
	current := commit
	oidsMap := storage.MapOidRefs()
	for current != nil {
		char := "|"
		if current.parent == nil {
			char = " "
		}
		refStr := ""
		if len(oidsMap[current.oid]) > 0 {
			refStr += "("
			for i, r := range oidsMap[current.oid] {
				refStr += r
				if i < len(oidsMap[current.oid])-1 {
					refStr += ", "
				}
			}
			refStr += ")"
		}
		fmt.Printf("* commit %s %s\n", current.oid, refStr)
		fmt.Println(char)
		fmt.Println(char, "\t", current.message)
		fmt.Println(char)
		current = current.parent
	}
}
/*
PrintLog takes a linked list of commits and prints them
*/
PrintLog takes a linked list of commits and prints them
/ * PrintLog takes a linked list of commits and prints them * /
func PrintLog(commit *CommitNode) {
	current := commit
	oidsMap := storage.MapOidRefs()
	for current != nil {
		char := "|"
		if current.parent == nil {
			char = " "
		}
		refStr := ""
		if len(oidsMap[current.oid]) > 0 {
			refStr += "("
			for i, r := range oidsMap[current.oid] {
				refStr += r
				if i < len(oidsMap[current.oid])-1 {
					refStr += ", "
				}
			}
			refStr += ")"
		}
		fmt.Printf("* commit %s %s\n", current.oid, refStr)
		fmt.Println(char)
		fmt.Println(char, "\t", current.message)
		fmt.Println(char)
		current = current.parent
	}
}
func PrintLog ( commit * CommitNode ) { current := commit oidsMap := storage . MapOidRefs ( ) for current != nil { char := " " if current . parent == nil { char = " " } refStr := " " if len ( oidsMap [ current . oid ] ) > 0 { refStr += " " for i , r := range oidsMap [ current . oid ] { refStr += r if i < len ( oidsMap [ current . oid ] ) - 1 { refStr += " " } } refStr += " " } fmt . Printf ( " \n " , current . oid , refStr ) fmt . Println ( char ) fmt . Println ( char , " \t " , current . message ) fmt . Println ( char ) current = current . parent } }
PrintLog takes a linked list of commits and prints them
PrintLog takes a linked list of commits and prints them