replace: add --edit option
commitb892bb45eacb484be281a992bef66ea723210717
authorJeff King <peff@peff.net>
Sat, 26 Apr 2014 20:00:57 +0000 (26 22:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Apr 2014 19:38:33 +0000 (29 12:38 -0700)
tree901cf69184bf3b9d776f23c01c5c1c11ad7c793b
parent479bd75751d81b6f3ffc29fcece56f9a200493a1
replace: add --edit option

This allows you to run:

    git replace --edit SHA1

to get dumped in an editor with the contents of the object
for SHA1. The result is then read back in and used as a
"replace" object for SHA1. The writing/reading is
type-aware, so you get to edit "ls-tree" output rather than
the binary tree format.

Missing documentation and tests.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replace.c