diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2015-01-13 10:57:14 +0100 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2015-01-13 20:51:44 +0100 |
commit | 6f3942ce38d0417baf57188eebf9bc2075f2f59a (patch) | |
tree | 90293d87633bfa3f16ba972ffc1314370e833f6f /git-arr | |
parent | 09c2f33f5a1f7137d50b3638e1a3f937e0701a6e (diff) | |
download | git-arr-fork-6f3942ce38d0417baf57188eebf9bc2075f2f59a.zip |
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 <sunshine@sunshineco.com>
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
Diffstat (limited to 'git-arr')
-rwxr-xr-x | git-arr | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, } |