git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [feature wishlist] add commit subcommand to git add -i
@ 2011-08-14  8:38 Jim Cromie
  2011-08-14  8:48 ` Conrad Irwin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jim Cromie @ 2011-08-14  8:38 UTC (permalink / raw)
  To: git

when using git add -i, it would be handy to have a [c]ommit option.

This would save some typing:
q # to quit git add -i
$> commit ....
git add -i <file> # to resume incremental adds

*** Commands ***
  1: [s]tatus	  2: [u]pdate	  3: [r]evert	  4: [a]dd untracked
  5: [p]atch	  6: [d]iff	  7: [q]uit	  8: [h]elp
  9: [c]commit
What now>

[f]ragment would also be handy, which would break each chunk of a diff
into a separate commit, with the summary line provided automatically
<file> @@ -696,7 +692,7 @@ int foo ...

This would help a bit with random cleanups, since rebase -i could then
be used to
reorder and recombine the fragments, and edit the commit messages afterwards.


going further, if git rebase -i  had ability to  "back" a fixup patch
back to where it should have been, and adjust the intervening patches
where conflict would normally happen, that would be awesome.
Simplistically, this would just shift the patch 1 step back iteratively,
until it wouldnt apply properly, and then --abort, stopping at the last
clean rebase.

apologies if this is too hair-brained, or already done.

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

end of thread, other threads:[~2011-08-15 12:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-14  8:38 [feature wishlist] add commit subcommand to git add -i Jim Cromie
2011-08-14  8:48 ` Conrad Irwin
2011-08-15  0:43   ` Jim Cromie
2011-08-14  8:56 ` Ramkumar Ramachandra
2011-08-15  0:44   ` Jim Cromie
2011-08-15 12:54 ` Thomas Rast

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).