Better handling of duplicates

If the new XML is identical to the last addition (from the Git log), ignore it
and continue. This is useful for tools such as 0release that will still retry
the add operation if it failed at any point, even after successfully updating
the XML.