git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [feature request] Make "commit --only" work with new files
@ 2016-11-25 16:56 Luis Ressel
  2016-11-28 14:09 ` Johannes Schindelin
  2016-11-28 17:52 ` Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: Luis Ressel @ 2016-11-25 16:56 UTC (permalink / raw)
  To: git

Hello,

currently "git commit --only <file>" only works if <file> is already
checked into the repo, but not with newly created and still untracked
files (builtin/commit.c:list_path() throws the error "error: pathspec
'<file>' did not match any file(s) known to git.")

I don't think this limitation is intented. I've had a look at the
relevant part of builtin/commit.c, but unfortunately it wasn't obvious
to me how to fix this.

Regards,
Luis Ressel

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

end of thread, other threads:[~2016-11-28 17:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-25 16:56 [feature request] Make "commit --only" work with new files Luis Ressel
2016-11-28 14:09 ` Johannes Schindelin
2016-11-28 17:52 ` Junio C Hamano

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