git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/4] replace: add option to edit a Git object
@ 2014-04-26 20:00 Christian Couder
  2014-04-26 20:00 ` [PATCH v1 1/4] replace: refactor command-mode determination Christian Couder
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Christian Couder @ 2014-04-26 20:00 UTC (permalink / raw)
  To: Jeff King; +Cc: Junio C Hamano, git

This patch series comes from what Peff sent in the following thread:

http://thread.gmane.org/gmane.comp.version-control.git/243361/focus=243528

I added the following fixes:

- add "strbuf_release(&result);" in import_object(); this was suggested
  by Eric Sunshine
- use MODE_LIST instead of MODE_DELETE if no arguments are passed; this
  makes the test suite pass
- add "--no-replace-objects" when calling "git cat-file" in export_object();
  so that we edit the original object if an object is already replaced

I am not happy with the fact that if the user doesn't modify the object when
editing it, then a replace ref can still be created that points to the
original object. I think something should be done to avoid that.

Once that is fixed, I plan to add some tests and documentation, but I wanted
first to let you know that I am looking at this.

Jeff King (4):
  replace: refactor command-mode determination
  replace: use OPT_CMDMODE to handle modes
  replace: factor object resolution out of replace_object
  replace: add --edit option

 builtin/replace.c | 189 ++++++++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 154 insertions(+), 35 deletions(-)

-- 
1.9.1.636.g20d5f34

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-04-29 21:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-26 20:00 [PATCH v1 0/4] replace: add option to edit a Git object Christian Couder
2014-04-26 20:00 ` [PATCH v1 1/4] replace: refactor command-mode determination Christian Couder
2014-04-26 20:00 ` [PATCH v1 2/4] replace: use OPT_CMDMODE to handle modes Christian Couder
2014-04-26 20:00 ` [PATCH v1 3/4] replace: factor object resolution out of replace_object Christian Couder
2014-04-26 20:00 ` [PATCH v1 4/4] replace: add --edit option Christian Couder
2014-04-29  2:36 ` [PATCH v1 0/4] replace: add option to edit a Git object Jeff King
2014-04-29 21:43   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).