From: Luis Ressel Date: Fri, 25 Nov 2016 16:56:19 GMT Subject: [feature request] Make "commit --only" work with new files Message-ID: <20161125175619.19e13e59@gentp.lnet> Hello, currently "git commit --only " only works if 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 '' 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