summaryrefslogtreecommitdiff
path: root/files/couch-doc-diff
AgeCommit message (Collapse)Author
2013-09-16Improve couch doc diff (#3761)Azul
Both the couch document and the second paramter will be pretty printed before comparison so differences in spaces etc. do not matter. All keys starting with an underscore on the couch such as _id and _rev will be removed before the comparison - we assume we want to compare the real data, not the metadata about the document as we usually do not know or care about what the id and revision will be.
2013-08-28couch:document - ensure state of a couch document - (feature #3485)Azul
also made the use of host, hostname and port a bit more consistent.
2013-08-28couch-doc-diff: diff of a document on the couch (feature 3485)Azul
Added the bash script couch-doc-diff. It runs a diff between the content of the couch document specified as the first parameter and the second parameter. Diff returns 0 if there is no difference. This way you can tell the data is already on the couch. The diff will ignore changes to whitespaces as these are usually irrelevant for security json docs.