Introduce match_atom_name() which helps in checking if a particular
atom is the atom we're looking for and if it has a value attached to
it or not.
Use it instead of starts_with() for checking the value of %(color:...)
atom. Write a test for the same.
Mentored-by: Christian Couder <redacted> Mentored-by: Matthieu Moy <redacted> Thanks-to: Junio C Hamano <redacted> Signed-off-by: Karthik Nayak <redacted> Signed-off-by: Junio C Hamano <redacted>