replace: add a --raw mode for --edit
commit2deda629c2ab7228790fb7561e66515a9bdcf7b6
authorJeff King <peff@peff.net>
Tue, 24 Jun 2014 09:46:31 +0000 (24 05:46 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Jun 2014 22:28:28 +0000 (25 15:28 -0700)
tree9b961e2d8daa2487c5fcdacc6fe20e763f8e414c
parent36857e0026f5a7855f941a955bf7014408a816dd
replace: add a --raw mode for --edit

One of the purposes of "git replace --edit" is to help a
user repair objects which are malformed or corrupted.
Usually we pretty-print trees with "ls-tree", which is much
easier to work with than the raw binary data.  However, some
forms of corruption break the tree-walker, in which case our
pretty-printing fails, rendering "--edit" useless for the
user.

This patch introduces a "--raw" option, which lets you edit
the binary data in these instances.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-replace.txt
builtin/replace.c