git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git 1.8.0.rc0.18.gf84667d trouble with "git commit -p file"
@ 2012-10-05 14:20 Horst H. von Brand
  2012-10-05 19:55 ` Frans Klaver
  0 siblings, 1 reply; 16+ messages in thread
From: Horst H. von Brand @ 2012-10-05 14:20 UTC (permalink / raw)
  To: git; +Cc: Horst von Brand

What I did:

- New file images/coins.asy ~~-> 'git add images/coins.asy'
- Started adding new stuff to fg.tex
- Noticed a old bug in fg.tex, fixed that one
- Did 'git -pm "Some message"' and selected just the bugfix

But git created a commit _including_ the new file. Tried to go back:

- 'git reset HEAD^'

Now the new file isn't staged anymore


What I expected to happen:

- Only the explicitly selected chunks commited
- No "losing staged changes"
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                    Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria             +56 32 2654239
Casilla 110-V, Valparaiso, Chile 2340000       Fax:  +56 32 2797513

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

end of thread, other threads:[~2012-10-11 17:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-05 14:20 git 1.8.0.rc0.18.gf84667d trouble with "git commit -p file" Horst H. von Brand
2012-10-05 19:55 ` Frans Klaver
2012-10-05 22:29   ` Junio C Hamano
2012-10-05 22:57     ` Jeff King
2012-10-06  6:26       ` Junio C Hamano
2012-10-06 13:12         ` Jeff King
2012-10-06 18:22           ` Junio C Hamano
2012-10-06 18:30             ` Jeff King
2012-10-06 18:32               ` Conrad Irwin
2012-10-06 19:07                 ` Jeff King
2012-10-07 20:51                   ` Junio C Hamano
2012-10-07 21:49                     ` Jeff King
2012-10-07 22:23                       ` Junio C Hamano
2012-10-07 22:25                         ` Jeff King
2012-10-11  5:51                           ` Conrad Irwin
2012-10-11 17:57                             ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).