Re: [PATCH 2/2] stage: add edit command

2013-08-29 Thread Felipe Contreras
Matthieu Moy wrote: > Felipe Contreras writes: > > > +'edit':: > > + > > +Manually edit the staging area (as a diff). > > + > > That sounds interesting. It reminds me "git add --edit", but they are > different ('stage edit' edits the patch with HEAD, 'add --edit' edits > the patch with the workt

Re: [PATCH 2/2] stage: add edit command

2013-08-29 Thread Matthieu Moy
Felipe Contreras writes: > +'edit':: > + > +Manually edit the staging area (as a diff). > + That sounds interesting. It reminds me "git add --edit", but they are different ('stage edit' edits the patch with HEAD, 'add --edit' edits the patch with the worktree). Can we find a consistent user-int

[PATCH 2/2] stage: add edit command

2013-08-29 Thread Felipe Contreras
Signed-off-by: Felipe Contreras --- Documentation/git-stage.txt| 5 +++ builtin/stage.c| 74 ++ contrib/completion/git-completion.bash | 4 +- 3 files changed, 82 insertions(+), 1 deletion(-) diff --git a/Documentation/git-sta