Add gdt function to show the specified commit.