git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Staging Individual Lines
@ 2013-04-21 22:22 ode
  2013-04-21 23:52 ` Felipe Contreras
  2013-04-22 14:35 ` Joshua Jensen
  0 siblings, 2 replies; 3+ messages in thread
From: ode @ 2013-04-21 22:22 UTC (permalink / raw)
  To: git

Hi,

I had a big commit I wanted to break up and was wondering if there is
any way to stage individual lines from the command line.

I am using git add -i but it couldn't split the hunks any smaller.

I went looking on Google and found git-cola gui client which works for
staging individual lines to the commit.

But it's a bit clumsy to do this with the mouse and I was wondering if
there is a way to do this without having manually editing the file and
changing the diff numbers in git add -i when it can't break the hunks
smaller.

Why must we still manually edit the diff numbers when git-cola seems to
be able to work out the changes automatically when adding single lines?

Thanks for your help.

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

end of thread, other threads:[~2013-04-22 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-21 22:22 Staging Individual Lines ode
2013-04-21 23:52 ` Felipe Contreras
2013-04-22 14:35 ` Joshua Jensen

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