From 6f3942ce38d0417baf57188eebf9bc2075f2f59a Mon Sep 17 00:00:00 2001 From: Eric Sunshine Date: Tue, 13 Jan 2015 04:57:14 -0500 Subject: blob: render hexdump(1)-style binary blob content Raw binary blob content tends to look like "line noise" and is rarely, if ever, meaningful. A hexdump(1)-style rendering (specifically, "hexdump -C"), on the other hand, showing runs of hexadecimal byte values along with an ASCII representation of those bytes can sometimes reveal useful information about the data. (A subsequent patch will add the ability to cap the amount of data rendered in order to reduce storage space requirements.) Signed-off-by: Eric Sunshine Signed-off-by: Alberto Bertogli --- git-arr | 1 + 1 file changed, 1 insertion(+) (limited to 'git-arr') diff --git a/git-arr b/git-arr index d3f1151..ae509ea 100755 --- a/git-arr +++ b/git-arr @@ -188,6 +188,7 @@ def with_utils(f): 'can_embed_image': utils.can_embed_image, 'embed_image_blob': utils.embed_image_blob, 'is_binary': utils.is_binary, + 'hexdump': utils.hexdump, 'abort': bottle.abort, 'smstr': git.smstr, } -- cgit v1.2.3