pombreda / vcscommand

Automatically exported from code.google.com/p/vcscommand
0 stars 0 forks source link

Commit from visual selection #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I didn't find any clue in the manual if it was possible to commit single
diff blocks from VCSVimDiff, but that, and especially the possibility to
commit what changed in a visual selection would be a huge improvement to me.
Should be possible by diffing the parent and filtering the range in the
visual selection, I think. Then, copying the parent and inserting the diff
at the given location.
However, would be an awesome feature.

Original issue reported on code.google.com by tek666@googlemail.com on 12 Dec 2008 at 3:13

GoogleCodeExporter commented 9 years ago
sorry, wrong type

Original comment by tek666@googlemail.com on 12 Dec 2008 at 3:14

GoogleCodeExporter commented 9 years ago
I believe this need is covered quite well using the built-in :diffput and 
:diffget
facilities from within vimdiff mode.  I'm not sure what you would want done 
with the
original working version of the file during the incremental commits, and I 
don't see
much value in committing one set of hunks at a time (limited by the fact that 
there
can be only one visual selection).

Please let me know if I'm missing some key feature that isn't more easily done
already with vimdiff mode.

Original comment by bob.hies...@gmail.com on 6 Jan 2009 at 5:17

GoogleCodeExporter commented 9 years ago
Actually, I was thinking about git-adding to build patches...and to have a quick
method for adding rather than firing up the interactive mode and scrolling 
through
the hunks, selecting a single one. Would be a time-saver imho.

Original comment by tek666@googlemail.com on 27 Mar 2009 at 3:56